AI knows what artillery mode is
authorunc0rr
Fri, 06 Nov 2009 18:24:55 +0000
changeset 2605 a40a7c90ffd8
parent 2604 ae5b19308e79
child 2606 ed687a8d081f
AI knows what artillery mode is
hedgewars/uAI.pas
--- a/hedgewars/uAI.pas	Thu Nov 05 21:03:44 2009 +0000
+++ b/hedgewars/uAI.pas	Fri Nov 06 18:24:55 2009 +0000
@@ -198,7 +198,7 @@
 BestRate:= RatePlace(Me);
 BaseRate:= max(BestRate, 0);
 
-while (Stack.Count > 0) and not StopThinking do
+while (Stack.Count > 0) and (not StopThinking) and (GameFlags and gfArtillery = 0) do
     begin
     Pop(ticks, Actions, Me^);