hedgewars/GSHandlers.inc
changeset 2221 ef52dae4130b
parent 2220 110266ba2ef7
child 2225 162d8f6bca25
equal deleted inserted replaced
2220:110266ba2ef7 2221:ef52dae4130b
  2217     dec(Gear^.Health, fuel div 5);
  2217     dec(Gear^.Health, fuel div 5);
  2218     Gear^.MsgParam:= Gear^.MsgParam or (HHGear^.Message and (gm_Left or gm_Right));
  2218     Gear^.MsgParam:= Gear^.MsgParam or (HHGear^.Message and (gm_Left or gm_Right));
  2219     Gear^.Timer:= GameTicks
  2219     Gear^.Timer:= GameTicks
  2220     end;
  2220     end;
  2221 
  2221 
  2222 // erases 'em all at once :-/ 
  2222 // erases them all at once :-/ 
  2223 if (Gear^.Timer <> 0) and (GameTicks - Gear^.Timer > 250) then
  2223 if (Gear^.Timer <> 0) and (GameTicks - Gear^.Timer > 250) then
  2224     begin
  2224     begin
  2225     Gear^.Timer:= 0;
  2225     Gear^.Timer:= 0;
  2226     Gear^.MsgParam:= 0
  2226     Gear^.MsgParam:= 0
  2227     end;
  2227     end;