Teams in one clan have common ammo
authorunc0rr
Sat, 21 Nov 2009 17:24:44 +0000
changeset 2635 80d02d3e24ae
parent 2634 d7531d08caa2
child 2636 aa839d9d27e7
Teams in one clan have common ammo
hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc	Sat Nov 21 15:04:42 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Nov 21 17:24:44 2009 +0000
@@ -138,7 +138,7 @@
 	val(s, Gear^.Health);
 	TryDo(Gear^.Health > 0, 'Invalid hedgehog health', true);
 	PHedgehog(Gear^.Hedgehog)^.Team:= CurrentTeam;
-	CurrentHedgehog^.AmmoStore:= TeamsCount - 1; // FIXME HACK to get ammostores work
+	CurrentHedgehog^.AmmoStore:= ClansCount - 1; // FIXME HACK to get ammostores work
 	CurrentHedgehog^.Gear:= Gear;
 	CurrentHedgehog^.Name:= id;
 	inc(HedgehogsNumber)