Don't fallback to default binds set when switching to remotely driven team
authorunc0rr
Mon, 12 Jan 2009 16:46:47 +0000
changeset 1650 a65681cc27c2
parent 1649 938a0fda0206
child 1651 f590918e15e9
Don't fallback to default binds set when switching to remotely driven team
hedgewars/hwengine.dpr
hedgewars/uTeams.pas
--- a/hedgewars/hwengine.dpr	Mon Jan 12 16:42:13 2009 +0000
+++ b/hedgewars/hwengine.dpr	Mon Jan 12 16:46:47 2009 +0000
@@ -89,6 +89,7 @@
 				end;
 			FinishProgress;
 			PlayMusic;
+			SetDefaultBinds;
 			GameState:= gsGame
 			end;
 	gsConfirm,
--- a/hedgewars/uTeams.pas	Mon Jan 12 16:42:13 2009 +0000
+++ b/hedgewars/uTeams.pas	Mon Jan 12 16:46:47 2009 +0000
@@ -221,8 +221,8 @@
 {$IFDEF DEBUGFILE}AddFileLog('Wind = '+FloatToStr(cWindSpeed));{$ENDIF}
 ApplyAmmoChanges(CurrentHedgehog^);
 
-if CurrentTeam^.ExtDriven then SetDefaultBinds
-                          else SetBinds(CurrentTeam^.Binds);
+if not CurrentTeam^.ExtDriven then SetBinds(CurrentTeam^.Binds);
+
 bShowFinger:= true;
 
 if (CurrentTeam^.ExtDriven or (CurrentHedgehog^.BotLevel > 0)) then