changeset 4327 | 224efdd648e1 |
parent 4279 | b697a26ed538 |
child 4365 | 4f2b1a152979 |
--- a/hedgewars/VGSHandlers.inc Sun Nov 14 02:38:05 2010 -0500 +++ b/hedgewars/VGSHandlers.inc Sun Nov 14 12:57:01 2010 +0100 @@ -618,3 +618,12 @@ DeleteVisualGear(Gear); end end; + +//////////////////////////////////////////////////////////////////////////////// +procedure doStepBulletHit(Gear: PVisualGear; Steps: Longword); +begin + if Gear^.FrameTicks <= Steps then + DeleteVisualGear(Gear) + else + dec(Gear^.FrameTicks, Steps); +end;