changeset 1850 | a0332e79fdc9 |
parent 1849 | 2a989e5abda6 |
child 2017 | 7845c77c8d31 |
--- a/hedgewars/CCHandlers.inc Sun Mar 01 17:24:25 2009 +0000 +++ b/hedgewars/CCHandlers.inc Sun Mar 01 17:30:10 2009 +0000 @@ -364,14 +364,14 @@ begin if (s[0] <> #1) or CheckNoTeamOrHH then exit; -if TAmmoType(LongInt(s[1])-33) > High(TAmmoType) then exit; +if TAmmoType(s[1]) > High(TAmmoType) then exit; if not CurrentTeam^.ExtDriven then SendIPC('w' + s); with CurrentHedgehog^.Gear^ do begin Message:= Message or gm_Weapon; - MsgParam:= byte(LongInt(s[1])-33) + MsgParam:= byte(s[1]) end end;