X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=725badd7b65cc5443a6d5317aea742f29604c3b7;hb=c903bd8cfb145b91de8a39204ea207ad0f5a3b49;hp=a16c902fe5d7a4df249739cfcbc244504d07435d;hpb=a516ac20306926cf487120bdca87c4013534721e;p=rocksndiamonds.git 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: