fixed bug in editor when using undo after rotating level repeatedly
authorHolger Schemel <info@artsoft.org>
Tue, 10 Feb 2015 22:16:07 +0000 (23:16 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 10 Feb 2015 22:16:07 +0000 (23:16 +0100)
ChangeLog
src/editor.c

index f924f2068b7ec2fe3c76bf4507e5debcda76f543..3df085a363218a2a3d7b2fe0abd1a157131003b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2015-02-10
        * changed position of CE/GE use/save template gadgets to be visually
          separated from other CE/GE gadgets (to prevent accidental use)
+       * fixed bug in editor when using undo after rotating level repeatedly
 
 2015-02-04
        * added configurability of editor control buttons (toolbox buttons)
index a16c902fe5d7a4df249739cfcbc244504d07435d..725badd7b65cc5443a6d5317aea742f29604c3b7 100644 (file)
@@ -10477,6 +10477,9 @@ static void CopyLevelToUndoBuffer(int mode)
   boolean new_undo_buffer_position = TRUE;
   int x, y;
 
+  if (undo_buffer_steps == 0)
+    accumulated_undo = FALSE;
+
   switch (mode)
   {
     case UNDO_IMMEDIATE: