diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-28 22:43:38 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 850385465543a9bd589084ec2ac6b0693c481fea (patch) | |
tree | fa0d375d36e946caee2c4ebc6a8ecd4e35f33d5b /src/game | |
parent | d85348b1d1b9aa7099255eda7c1058f9749d1003 (diff) | |
download | openttd-850385465543a9bd589084ec2ac6b0693c481fea.tar.xz |
Codechange: Pass unpacked command arguments to command callbacks (except Script).
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game_instance.cpp | 2 | ||||
-rw-r--r-- | src/game/game_instance.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp index 8433567c7..fa44ee97c 100644 --- a/src/game/game_instance.cpp +++ b/src/game/game_instance.cpp @@ -93,7 +93,7 @@ void CcGame(Commands cmd, const CommandCost &result, TileIndex tile, const Comma } } -CommandCallback *GameInstance::GetDoCommandCallback() +CommandCallbackData *GameInstance::GetDoCommandCallback() { return &CcGame; } diff --git a/src/game/game_instance.hpp b/src/game/game_instance.hpp index 7b3b12b37..84cb20ac5 100644 --- a/src/game/game_instance.hpp +++ b/src/game/game_instance.hpp @@ -29,7 +29,7 @@ public: private: void RegisterAPI() override; void Died() override; - CommandCallback *GetDoCommandCallback() override; + CommandCallbackData *GetDoCommandCallback() override; void LoadDummyScript() override {} }; |