changed displaying FPS by cheat code ':fps' instead of always in debug mode
[rocksndiamonds.git] / src / events.c
index aa20e2d056999b116d555048a73ad704b2a0a564..d56edaf9c38596a3c9933c15bbd26de96965c703 100644 (file)
@@ -1441,6 +1441,11 @@ static void HandleKeysSpecial(Key key)
     {
       SaveNativeLevel(&level);
     }
+    else if (is_string_suffix(cheat_input, ":frames-per-second") ||
+            is_string_suffix(cheat_input, ":fps"))
+    {
+      global.show_frames_per_second = !global.show_frames_per_second;
+    }
   }
   else if (game_status == GAME_MODE_PLAYING)
   {