1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Cancelling placing a terminal/script box shouldn't have undo events

This commit is contained in:
NyakoFox 2024-10-03 22:12:36 -03:00
parent 4745ffc1f3
commit f2bb58bba2

View file

@ -2375,6 +2375,13 @@ static void commit_roomdata_tiles_change()
ed.redo_buffer.clear();
}
static void uncommit()
{
extern editorclass ed;
ed.undo_buffer.pop_back();
}
static void set_tile_interpolated(const int x1, const int x2, const int y1, const int y2, const int tile)
{
extern editorclass ed;
@ -3846,6 +3853,9 @@ void editorinput(void)
if (ed.old_entity_text == "")
{
ed.remove_entity(ed.text_entity);
// Uncommit the past two actions
uncommit();
uncommit();
}
}