style: improve readability
This commit is contained in:
parent
88a4234034
commit
9a15562e91
@ -26,7 +26,11 @@ function Timer()
|
|||||||
}
|
}
|
||||||
simulated function Tick( float Delta )
|
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;
|
return;
|
||||||
|
|
||||||
// Find local playercontroller.
|
// Find local playercontroller.
|
||||||
|
Loading…
Reference in New Issue
Block a user