fix inheritance of undo()/redo() in cTerrainAction
This commit is contained in:
@@ -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();
|
||||
|
@@ -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;};
|
||||
|
Reference in New Issue
Block a user