diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f8e9faca7..03b5d7d98 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20110115 -------- arch/linux/ipx.c, main/net_ipx.c: Fixed some compiler warnings +main/game.c: Due to recent changes in event_poll() game_handler() must call ReadControls() for EVENT_MOUSE_MOVED, too; Little fix for FixedStepCalc() 20110114 -------- diff --git a/main/game.c b/main/game.c index fc1841dec..a10c40e74 100644 --- a/main/game.c +++ b/main/game.c @@ -409,21 +409,21 @@ void FixedStepCalc() if (Timer4 >= F1_0/4) { StepRes |= EPS4; - Timer4 = 0 - (Timer4-F1_0/4); + Timer4 = (Timer4-(F1_0/4)); } Timer20 += FrameTime; if (Timer20 >= F1_0/20) { StepRes |= EPS20; - Timer20 = 0 - (Timer20-F1_0/20); + Timer20 = (Timer20-(F1_0/20)); } Timer30 += FrameTime; if (Timer30 >= F1_0/30) { StepRes |= EPS30; - Timer30 = 0 - (Timer30-F1_0/30); + Timer30 = (Timer30-(F1_0/30)); } FixedStep = StepRes; @@ -1030,6 +1030,7 @@ int game_handler(window *wind, d_event *event, void *data) case EVENT_MOUSE_BUTTON_UP: case EVENT_MOUSE_BUTTON_DOWN: + case EVENT_MOUSE_MOVED: case EVENT_KEY_COMMAND: case EVENT_IDLE: // EVENT_IDLE will be removed once all input events are in place return ReadControls(event);