fixed frame delay debug keys by only allowing 'normal' modifier keys
[rocksndiamonds.git] / src / events.c
index 5b1e5771c671ca48ae568bdd221dd8100799966f..aa20e2d056999b116d555048a73ad704b2a0a564 100644 (file)
@@ -1470,7 +1470,7 @@ void HandleKeysDebug(Key key)
 
   if (game_status == GAME_MODE_PLAYING || !setup.debug.frame_delay_game_only)
   {
-    boolean mod_key_pressed = (GetKeyModState() != KMOD_None);
+    boolean mod_key_pressed = ((GetKeyModState() & KMOD_Valid) != KMOD_None);
 
     for (i = 0; i < NUM_DEBUG_FRAME_DELAY_KEYS; i++)
     {