# HG changeset patch # User nemo # Date 1286729596 14400 # Node ID 41e06b74c991b2f9a71bd365c92bd332138f2c67 # Parent c3d5eace0a3216f5e182d7e03c4768babc7f10ba Enable resetting of weapons after each turn - useful in combination with a limited weaponset and unlimited attacks diff -r c3d5eace0a32 -r 41e06b74c991 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sun Oct 10 12:32:12 2010 -0400 +++ b/hedgewars/uGears.pas Sun Oct 10 12:53:16 2010 -0400 @@ -924,7 +924,10 @@ begin t^.PortalCounter:= 0; t:= t^.NextGear - end + end; + + if (GameFlags and gfResetWeps) <> 0 then + ResetWeapons end; procedure ApplyDamage(Gear: PGear; Damage: Longword; Source: TDamageSource);