(svn r9157) [NoAI] -Fix: wrong function was chosen (scoping issue). noai
authorrubidium
Wed, 14 Mar 2007 01:57:10 +0000
branchnoai
changeset 9370 839d87adee8e
parent 9369 45f5c3273327
child 9371 cfa43f975d01
(svn r9157) [NoAI] -Fix: wrong function was chosen (scoping issue).
src/ai/core/object/commands.cpp
--- 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 */