fixed toggling game speed (using debug mode key shortcuts)
authorHolger Schemel <info@artsoft.org>
Mon, 12 Dec 2016 21:34:40 +0000 (22:34 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 12 Dec 2016 21:34:40 +0000 (22:34 +0100)
src/events.c

index abf74ba..e2d5ab9 100644 (file)
@@ -1433,7 +1433,7 @@ void HandleKeysDebug(Key key)
          (mod_key_pressed == setup.debug.frame_delay_use_mod_key))
       {
        GameFrameDelay = (GameFrameDelay != setup.debug.frame_delay[i] ?
-                         setup.debug.frame_delay[i] : GAME_FRAME_DELAY);
+                         setup.debug.frame_delay[i] : setup.game_frame_delay);
 
        if (!setup.debug.frame_delay_game_only)
          MenuFrameDelay = GameFrameDelay;