diff -r 1ac8aac92385 -r e79cd19772dd src/ai/ai.cpp --- a/src/ai/ai.cpp Wed Jun 13 12:05:56 2007 +0000 +++ b/src/ai/ai.cpp Tue Jun 19 07:21:01 2007 +0000 @@ -81,10 +81,10 @@ /** * Executes a raw DoCommand for the AI. */ -int32 AI_DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback* callback) +CommandCost AI_DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback* callback) { PlayerID old_lp; - int32 res = 0; + CommandCost res = 0; const char* tmp_cmdtext; /* If you enable DC_EXEC with DC_QUERY_COST you are a really strange @@ -135,7 +135,7 @@ } -int32 AI_DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) +CommandCost AI_DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { return AI_DoCommandCc(tile, p1, p2, flags, procc, NULL); }