equal
deleted
inserted
replaced
144 CMD_START_SCENARIO = 109, |
144 CMD_START_SCENARIO = 109, |
145 CMD_BUILD_MANY_SIGNALS = 110, |
145 CMD_BUILD_MANY_SIGNALS = 110, |
146 |
146 |
147 //CMD_DESTROY_INDUSTRY = 109, |
147 //CMD_DESTROY_INDUSTRY = 109, |
148 CMD_DESTROY_COMPANY_HQ = 111, |
148 CMD_DESTROY_COMPANY_HQ = 111, |
|
149 CMD_GIVE_MONEY = 112, |
|
150 CMD_CHANGE_PATCH_SETTING = 113, |
149 }; |
151 }; |
150 |
152 |
151 enum { |
153 enum { |
152 DC_EXEC = 1, |
154 DC_EXEC = 1, |
153 DC_AUTO = 2, // don't allow building on structures |
155 DC_AUTO = 2, // don't allow building on structures |
164 #define CMD_MSG(x) ((x)<<16) |
166 #define CMD_MSG(x) ((x)<<16) |
165 |
167 |
166 enum { |
168 enum { |
167 CMD_AUTO = 0x200, |
169 CMD_AUTO = 0x200, |
168 CMD_NO_WATER = 0x400, |
170 CMD_NO_WATER = 0x400, |
169 CMD_DONT_NETWORK = 0x800, // execute the command without sending it on the network |
171 CMD_NETWORK_COMMAND = 0x800, // execute the command without sending it on the network |
170 CMD_ASYNC = 0x1000, // execute the command asynchronously without testing first in networking |
172 CMD_NO_TEST_IF_IN_NETWORK = 0x1000, // When enabled, the command will bypass the no-DC_EXEC round if in network |
171 CMD_NET_INSTANT = 0x2000, |
|
172 }; |
173 }; |
173 |
174 |
174 //#define return_cmd_error(errcode) do { _error_message=(errcode); return CMD_ERROR; } while(0) |
175 //#define return_cmd_error(errcode) do { _error_message=(errcode); return CMD_ERROR; } while(0) |
175 #define return_cmd_error(errcode) do { return CMD_ERROR | (errcode); } while (0) |
176 #define return_cmd_error(errcode) do { return CMD_ERROR | (errcode); } while (0) |
176 |
177 |