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

Don't commit tile events if removing entities

This commit is contained in:
NyakoFox 2024-10-03 22:13:33 -03:00
parent f2bb58bba2
commit 662a86d1cd

View file

@ -2512,19 +2512,23 @@ void editorclass::handle_tile_placement(const int tile)
void editorclass::tool_remove() void editorclass::tool_remove()
{ {
switch (current_tool)
{
case EditorTool_WALLS:
case EditorTool_BACKING:
if (!placing_tiles) if (!placing_tiles)
{ {
placing_tiles = true; placing_tiles = true;
update_old_tiles(); update_old_tiles();
} }
switch (current_tool)
{
case EditorTool_WALLS:
case EditorTool_BACKING:
handle_tile_placement(0); handle_tile_placement(0);
break; break;
case EditorTool_SPIKES: case EditorTool_SPIKES:
if (!placing_tiles)
{
placing_tiles = true;
update_old_tiles();
}
set_tile_interpolated(old_tilex, tilex, old_tiley, tiley, 0); set_tile_interpolated(old_tilex, tilex, old_tiley, tiley, 0);
break; break;
default: default: