# HG changeset patch # User nemo # Date 1284765048 14400 # Node ID 57e7327d5817f315d0014fb37f31fd247e022c23 # Parent 28c3b8143573d6fc85f322b8cea4e690fb2ba9ab aaaand use the right name diff -r 28c3b8143573 -r 57e7327d5817 hedgewars/PascalExports.pas --- a/hedgewars/PascalExports.pas Fri Sep 17 18:59:44 2010 -0400 +++ b/hedgewars/PascalExports.pas Fri Sep 17 19:10:48 2010 -0400 @@ -220,7 +220,7 @@ function HW_isWeaponTimerable: boolean; cdecl; export; begin if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Ammo <> nil) and (CurrentHedgehog^.BotLevel = 0) then - exit( (Ammoz[CurrentHedgehog^.CurWeapon].Ammo.Propz and ammoprop_Timerable) <> 0) + exit( (Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_Timerable) <> 0) else exit(false); end; @@ -236,7 +236,7 @@ function HW_isWeaponRope: boolean cdecl; export; begin if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Ammo <> nil) and (CurrentHedgehog^.BotLevel = 0) then - exit (CurrentHedgehog^.CurWeapon = amRope) + exit (CurrentHedgehog^.CurAmmoType = amRope) else exit(false); end; @@ -250,7 +250,7 @@ begin // this most likely won't work in network game if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Ammo <> nil) and (CurrentHedgehog^.BotLevel = 0) - and (CurrentHedgehog^.CurWeapon = amPiano) then + and (CurrentHedgehog^.CurAmmoType = amPiano) then case snd of 0: PlaySound(sndPiano0); 1: PlaySound(sndPiano1);