equal
deleted
inserted
replaced
79 } |
79 } |
80 |
80 |
81 /** |
81 /** |
82 * Executes a raw DoCommand for the AI. |
82 * Executes a raw DoCommand for the AI. |
83 */ |
83 */ |
84 int32 AI_DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback* callback) |
84 CommandCost AI_DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback* callback) |
85 { |
85 { |
86 PlayerID old_lp; |
86 PlayerID old_lp; |
87 int32 res = 0; |
87 CommandCost res = 0; |
88 const char* tmp_cmdtext; |
88 const char* tmp_cmdtext; |
89 |
89 |
90 /* If you enable DC_EXEC with DC_QUERY_COST you are a really strange |
90 /* If you enable DC_EXEC with DC_QUERY_COST you are a really strange |
91 * person.. should we check for those funny jokes? |
91 * person.. should we check for those funny jokes? |
92 */ |
92 */ |
133 |
133 |
134 return res; |
134 return res; |
135 } |
135 } |
136 |
136 |
137 |
137 |
138 int32 AI_DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) |
138 CommandCost AI_DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) |
139 { |
139 { |
140 return AI_DoCommandCc(tile, p1, p2, flags, procc, NULL); |
140 return AI_DoCommandCc(tile, p1, p2, flags, procc, NULL); |
141 } |
141 } |
142 |
142 |
143 |
143 |