[client] fixed realignment when in server mode

This commit is contained in:
Geoffrey McRae 2017-12-04 00:12:44 +11:00
parent 62ab543720
commit b61ba15a9c

View File

@ -679,10 +679,12 @@ int eventThread(void * arg)
case SDL_MOUSEMOTION:
{
if (
event.motion.x < state.dstRect.x ||
event.motion.x > state.dstRect.x + state.dstRect.w ||
event.motion.y < state.dstRect.y ||
event.motion.y > state.dstRect.y + state.dstRect.h
!serverMode && (
event.motion.x < state.dstRect.x ||
event.motion.x > state.dstRect.x + state.dstRect.w ||
event.motion.y < state.dstRect.y ||
event.motion.y > state.dstRect.y + state.dstRect.h
)
)
{
realignGuest = true;