From c903bd8cfb145b91de8a39204ea207ad0f5a3b49 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 10 Feb 2015 23:16:07 +0100 Subject: [PATCH] fixed bug in editor when using undo after rotating level repeatedly --- ChangeLog | 1 + src/editor.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index f924f206..3df085a3 100644 --- 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) diff --git a/src/editor.c b/src/editor.c index a16c902f..725badd7 100644 --- 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; + if (undo_buffer_steps == 0) + accumulated_undo = FALSE; + switch (mode) { case UNDO_IMMEDIATE: -- 2.34.1