Codechange: Align parameter order of command callbacks to command handlers.

This commit is contained in:
Michael Lutz
2021-10-10 17:20:27 +02:00
parent 123c7f99c3
commit 4fc055d6e9
18 changed files with 57 additions and 41 deletions

View File

@@ -318,7 +318,7 @@ static bool DoCommandP(Commands cmd, StringID err_message, CommandCallback *call
}
if (!estimate_only && !only_sending && callback != nullptr) {
callback(res, tile, p1, p2, cmd);
callback(res, cmd, tile, p1, p2, text);
}
return res.Succeeded();