rnd-20020401-1-src
[rocksndiamonds.git] / src / events.c
index 4bf6da2d2ece4046f314267a48ae0d589eadee8a..c497116ed6adb55b420a9718af18abd0be2e9820 100644 (file)
@@ -486,6 +486,14 @@ void HandleKey(Key key, int key_status)
     return;
   }
 
+  /* special shortcuts for quick game tape saving and loading */
+  if (game_status == MAINMENU || game_status == PLAYING)
+  {
+    if (key == KSYM_F1)                /* save game */
+      TapeQuickSave();
+    else if (key == KSYM_F2)   /* load game */
+      TapeQuickLoad();
+  }
 
 
 #ifndef DEBUG