Codechange: Pass unpacked command arguments to command callbacks (except Script).

This commit is contained in:
Michael Lutz
2021-11-28 22:43:38 +01:00
parent d85348b1d1
commit 8503854655
31 changed files with 96 additions and 75 deletions

View File

@@ -113,7 +113,7 @@ void CcAI(Commands cmd, const CommandCost &result, TileIndex tile, const Command
}
}
CommandCallback *AIInstance::GetDoCommandCallback()
CommandCallbackData *AIInstance::GetDoCommandCallback()
{
return &CcAI;
}

View File

@@ -29,7 +29,7 @@ public:
private:
void RegisterAPI() override;
void Died() override;
CommandCallback *GetDoCommandCallback() override;
CommandCallbackData *GetDoCommandCallback() override;
void LoadDummyScript() override;
};