From 9a15562e912f06043593d319fc7126d5fc3db708 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 5 Oct 2020 21:38:02 +0300 Subject: [PATCH] style: improve readability --- ServerExt/Classes/Ext_T_AutoFireHelper.uc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ServerExt/Classes/Ext_T_AutoFireHelper.uc b/ServerExt/Classes/Ext_T_AutoFireHelper.uc index 5db791a..d14cbd5 100644 --- a/ServerExt/Classes/Ext_T_AutoFireHelper.uc +++ b/ServerExt/Classes/Ext_T_AutoFireHelper.uc @@ -26,7 +26,11 @@ function Timer() } simulated function Tick( float Delta ) { - if( WorldInfo.NetMode==NM_DedicatedServer || PawnOwner==None || PawnOwner.InvManager==None || KFWeapon(PawnOwner.Weapon)==None || KFWeapon(PawnOwner.Weapon).GetWeaponPerkClass(AssociatedPerkClass)!=AssociatedPerkClass && AssociatedPerkClass != class'KFPerk_Survivalist' ) + if ( WorldInfo.NetMode==NM_DedicatedServer + || PawnOwner==None + || PawnOwner.InvManager==None + || KFWeapon(PawnOwner.Weapon)==None + || ( KFWeapon(PawnOwner.Weapon).GetWeaponPerkClass(AssociatedPerkClass) != AssociatedPerkClass && AssociatedPerkClass != class'KFPerk_Survivalist' )) return; // Find local playercontroller.