(svn r9157) [NoAI] -Fix: wrong function was chosen (scoping issue).
--- a/src/ai/core/object/commands.cpp Wed Mar 14 01:02:01 2007 +0000
+++ b/src/ai/core/object/commands.cpp Wed Mar 14 01:57:10 2007 +0000
@@ -15,7 +15,7 @@
tmp_cmdtext = _cmd_text;
/* First, do a test-run to see if we can do this */
- res = DoCommand(tile, p1, p2, flags & ~DC_EXEC, procc);
+ res = ::DoCommand(tile, p1, p2, flags & ~DC_EXEC, procc);
/* The command failed, or you didn't want to execute, or you are quering, return */
if (CmdFailed(res) || !(flags & DC_EXEC) || (flags & DC_QUERY_COST)) return res;
@@ -36,13 +36,13 @@
/* Send the command */
if (_networking) {
/* Network is easy, send it to his handler */
- NetworkSend_Command(tile, p1, p2, procc, callback);
+ ::NetworkSend_Command(tile, p1, p2, procc, callback);
} else {
#else
{
#endif
/* For SinglePlayer we execute the command immediatly */
- DoCommandP(tile, p1, p2, callback, procc);
+ ::DoCommandP(tile, p1, p2, callback, procc);
}
/* Set _local_player back */