fix inheritance of undo()/redo() in cTerrainAction

This commit is contained in:
2025-06-14 11:48:40 -05:00
parent d834af5d4c
commit 472f80896a
2 changed files with 4 additions and 6 deletions

View File

@@ -41,10 +41,8 @@ public:
cTerrainAction(std::string name, location out_sec, location where, bool reversed = false);
// Construct cTerrainAction in the current town/outdoor section
cTerrainAction(std::string name, location where, bool reversed = false);
void undo();
void redo();
bool undo_me() = 0;
bool redo_me() = 0;
void undo() override;
void redo() override;
private:
/// Show where the change happened
void showChangeSite();

View File

@@ -29,10 +29,10 @@ protected:
public:
/// Undoes this action if it has not already been undone.
/// If it has already been undone, does nothing.
void undo();
virtual void undo();
/// Redoes this action if it has been undone.
/// If it has not been undone, does nothing.
void redo();
virtual void redo();
/// Cchecks to see whether the action has been undone.
/// @return false if it the action has been undone.
bool isDone() {return done;};