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 abf74ba51b1385dbf1eefe283f34da81880042b7..e2d5ab9bdb47ef3fb81caed64112dd411b9e6a63 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;