undo/redo place 4 town entrances

This commit is contained in:
2025-06-14 10:55:17 -05:00
parent a64a897a25
commit d834af5d4c
3 changed files with 30 additions and 0 deletions

View File

@@ -598,4 +598,16 @@ bool aImportOutdoors::redo_me() {
set_current_out(which);
start_out_edit();
return true;
}
bool aPlaceTownEntrance::undo_me() {
town->start_locs[which_entrance].x = old_loc.x;
town->start_locs[which_entrance].y = old_loc.y;
return true;
}
bool aPlaceTownEntrance::redo_me() {
town->start_locs[which_entrance].x = new_loc.x;
town->start_locs[which_entrance].y = new_loc.y;
return true;
}