diff --git a/sources/NiceHumanPawn.uc b/sources/NiceHumanPawn.uc index ab83d3d..a074992 100644 --- a/sources/NiceHumanPawn.uc +++ b/sources/NiceHumanPawn.uc @@ -491,15 +491,17 @@ simulated function ClientChangeWeapon(NiceWeapon newWeap){ // Validate that client is not hacking. function bool CanBuyNow() { - local NicePlayerController niceController; + local NiceGameType NiceGT; - niceController = NicePlayerController(Controller); - if (niceController == none) + NiceGT = NiceGameType(Level.Game); + if (NicePlayerController(Controller) == none) return false; - if (NiceGameType(Level.Game) != none && NiceGameType(Level.Game).NicePackMutator != none - && NiceGameType(Level.Game).NicePackMutator.bIsPreGame) + if (NiceGT != none && NiceGT.NicePackMutator != none + && NiceGT.NicePackMutator.bIsPreGame) return true; - return Super.CanBuyNow(); + + // skip Scrn code! + return super(KFPawn).CanBuyNow(); } // Overridden to not modify dual pistols' weapon group