fix players count if there are spectators
This commit is contained in:
parent
f9c11dc3b4
commit
dd5201ea2b
@ -82,7 +82,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,8 +81,9 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
|
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user