mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Cancelling placing a terminal/script box shouldn't have undo events
This commit is contained in:
parent
4745ffc1f3
commit
f2bb58bba2
1 changed files with 10 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue