style: improve readability

This commit is contained in:
GenZmeY 2020-10-05 21:38:02 +03:00
parent 88a4234034
commit 9a15562e91

View File

@ -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.