Revert r2675 pending solution to teams getting wrong ammo.
authornemo
Sat, 20 Feb 2010 18:58:51 +0000
changeset 2831 797207d0c500
parent 2830 571a9deffeac
child 2832 8cb73c0e77a1
Revert r2675 pending solution to teams getting wrong ammo.
hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc	Sat Feb 20 09:33:20 2010 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Feb 20 18:58:51 2010 +0000
@@ -153,7 +153,12 @@
 	val(s, Gear^.Health);
 	TryDo(Gear^.Health > 0, 'Invalid hedgehog health', true);
 	PHedgehog(Gear^.Hedgehog)^.Team:= CurrentTeam;
-	CurrentHedgehog^.AmmoStore:= ClansCount - 1; // FIXME HACK to get ammostores work
+	//CurrentHedgehog^.AmmoStore:= ClansCount - 1; // FIXME HACK to get ammostores work
+// ClansCount above causes shared ammo across clans, have demo game that functions as of this revision.
+// need to find out why before restoring.
+// Also needs a frontend game flag.
+// Is *not* related to randomising clan order.
+	CurrentHedgehog^.AmmoStore:= TeamsCount - 1; // FIXME HACK to get ammostores work
 	CurrentHedgehog^.Gear:= Gear;
 	CurrentHedgehog^.Name:= id;
     CurrHedgehog:= HedgehogsNumber;