remove unnecessary role check
This commit is contained in:
parent
ff332c3140
commit
2dfc44b90a
@ -260,22 +260,26 @@ simulated function PostBeginPlay()
|
||||
simulated function PostNetBeginPlay()
|
||||
{
|
||||
super.PostNetBeginPlay();
|
||||
|
||||
if (Role < ROLE_Authority)
|
||||
LoadReplicationData();
|
||||
}
|
||||
function SetReplicationData(){
|
||||
|
||||
simulated function LoadReplicationData()
|
||||
{
|
||||
bInitialTrader = (SrvFlags & 0x00000001) > 0;
|
||||
bStillDuringInitTrader = (SrvFlags & 0x00000002) > 0;
|
||||
}
|
||||
|
||||
function SetReplicationData()
|
||||
{
|
||||
SrvFlags = 0;
|
||||
if (bInitialTrader)
|
||||
SrvFlags = SrvFlags | 0x00000001;
|
||||
if (bStillDuringInitTrader)
|
||||
SrvFlags = SrvFlags | 0x00000002;
|
||||
}
|
||||
simulated function LoadReplicationData(){
|
||||
if(Role == ROLE_Authority)
|
||||
return;
|
||||
bInitialTrader = (SrvFlags & 0x00000001) > 0;
|
||||
bStillDuringInitTrader = (SrvFlags & 0x00000002) > 0;
|
||||
}
|
||||
|
||||
simulated function Timer(){
|
||||
local KFHumanPawn nextPawn;
|
||||
local int currentPlayersMax;
|
||||
|
Loading…
Reference in New Issue
Block a user