From: Holger Schemel Date: Tue, 10 Feb 2015 22:16:07 +0000 (+0100) Subject: fixed bug in editor when using undo after rotating level repeatedly X-Git-Tag: 4.0.0.0-rc1~292 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=c903bd8cfb145b91de8a39204ea207ad0f5a3b49 fixed bug in editor when using undo after rotating level repeatedly --- 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: