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:
@@ -33,6 +33,7 @@
|
||||
#include "guitimer_func.h"
|
||||
#include "error.h"
|
||||
#include "news_gui.h"
|
||||
#include "misc_cmd.h"
|
||||
|
||||
#include "saveload/saveload.h"
|
||||
|
||||
@@ -326,7 +327,7 @@ struct MainWindow : Window
|
||||
|
||||
case GHK_MONEY: // Gimme money
|
||||
/* You can only cheat for money in singleplayer mode. */
|
||||
if (!_networking) DoCommandP(CMD_MONEY_CHEAT, 0, 10000000, 0);
|
||||
if (!_networking) Command<CMD_MONEY_CHEAT>::Post(0, 10000000, 0, {});
|
||||
break;
|
||||
|
||||
case GHK_UPDATE_COORDS: // Update the coordinates of all station signs
|
||||
|
Reference in New Issue
Block a user