diff --git a/src/input.cpp b/src/input.cpp index 62209f45..7c6779e2 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -126,6 +126,8 @@ void Input::SetMousePos(int2 coord) data->entities[n]->mousepos = (int2)((int3)coord - best->bbox[0]); if (best != data->lastfocus) data->entities[n]->pressed = data->buttons; + else + data->entities[n]->clicked = 0; } else { diff --git a/win32/monsterz.vcxproj b/win32/monsterz.vcxproj index d32b7e69..ea01e1e2 100644 --- a/win32/monsterz.vcxproj +++ b/win32/monsterz.vcxproj @@ -12,6 +12,7 @@ + @@ -50,6 +51,7 @@ + diff --git a/win32/monsterz.vcxproj.filters b/win32/monsterz.vcxproj.filters index af99bcba..ae5f5236 100644 --- a/win32/monsterz.vcxproj.filters +++ b/win32/monsterz.vcxproj.filters @@ -88,6 +88,7 @@ lolengine + @@ -174,6 +175,7 @@ lolengine +