Codechange: Template DoCommandP to automagically reflect the parameters of the command proc.
When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
This commit is contained in:
@@ -135,7 +135,7 @@ CommandCost CmdDecreaseLoan(DoCommandFlag flags, TileIndex tile, uint32 p1, uint
|
||||
static void AskUnsafeUnpauseCallback(Window *w, bool confirmed)
|
||||
{
|
||||
if (confirmed) {
|
||||
DoCommandP(CMD_PAUSE, 0, PM_PAUSED_ERROR, 0);
|
||||
Command<CMD_PAUSE>::Post(0, PM_PAUSED_ERROR, 0, {});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user