projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in editor when using undo after rotating level repeatedly
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index a16c902fe5d7a4df249739cfcbc244504d07435d..725badd7b65cc5443a6d5317aea742f29604c3b7 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-10477,6
+10477,9
@@
static void CopyLevelToUndoBuffer(int mode)
boolean new_undo_buffer_position = TRUE;
int x, y;
boolean new_undo_buffer_position = TRUE;
int x, y;
+ if (undo_buffer_steps == 0)
+ accumulated_undo = FALSE;
+
switch (mode)
{
case UNDO_IMMEDIATE:
switch (mode)
{
case UNDO_IMMEDIATE: