don't load key binds for AI hedgehogs
authorsheepluva
Mon, 12 Sep 2011 07:38:16 +0200
changeset 5875 b3e23cb69ab4
parent 5874 5cd329cf2460
child 5876 7d52d7174619
don't load key binds for AI hedgehogs
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Mon Sep 12 07:27:34 2011 +0200
+++ b/hedgewars/uTeams.pas	Mon Sep 12 07:38:16 2011 +0200
@@ -234,7 +234,7 @@
 
 ApplyAmmoChanges(CurrentHedgehog^);
 
-if not CurrentTeam^.ExtDriven then SetBinds(CurrentTeam^.Binds);
+if (not CurrentTeam^.ExtDriven) and (CurrentHedgehog^.BotLevel = 0) then SetBinds(CurrentTeam^.Binds);
 
 bShowFinger:= true;