added ability to undo (restore) the previously recorded tape
[rocksndiamonds.git] / src / events.c
index c18a8a468a3b24ac32d7c21e7b7ecd7573eb1a98..3a303fa5e5fc20155b1e179401e3e79b9ed881e6 100644 (file)
@@ -1859,6 +1859,11 @@ static void HandleKeysSpecial(Key key)
     {
       DumpTape(&tape);
     }
+    else if (strSuffix(cheat_input, ":undo-tape") ||
+            strSuffix(cheat_input, ":ut"))
+    {
+      UndoTape();
+    }
     else if (strSuffix(cheat_input, ":fix-tape") ||
             strSuffix(cheat_input, ":ft"))
     {