projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added ability to undo (restore) the previously recorded tape
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index c18a8a468a3b24ac32d7c21e7b7ecd7573eb1a98..3a303fa5e5fc20155b1e179401e3e79b9ed881e6 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-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"))
{