.
This commit is contained in:
parent
f00b92a300
commit
2fb3f2bad5
@ -74,9 +74,17 @@ public static function UpdateGameSettings(KFGameInfo_Survival KFGI, bool bUsesSt
|
||||
if (KFGI.WorldInfo.IsConsoleDedicatedServer() || KFGI.WorldInfo.IsEOSDedicatedServer())
|
||||
{
|
||||
KFGameSettings.MapName = KFGI.WorldInfo.GetMapName(true);
|
||||
// Old:
|
||||
//foreach KFGI.WorldInfo.AllControllers(class'PlayerController', PC)
|
||||
// if (PC.bIsPlayer
|
||||
// && PC.PlayerReplicationInfo != none
|
||||
// && !PC.PlayerReplicationInfo.bBot)
|
||||
// NumHumanPlayers++;
|
||||
|
||||
foreach KFGI.WorldInfo.AllControllers(class'PlayerController', PC)
|
||||
if (PC.bIsPlayer
|
||||
&& PC.PlayerReplicationInfo != none
|
||||
&& !PC.PlayerReplicationInfo.bOnlySpectator
|
||||
&& !PC.PlayerReplicationInfo.bBot)
|
||||
NumHumanPlayers++;
|
||||
|
||||
|
@ -322,6 +322,8 @@ function NotifyLogout(Controller C)
|
||||
VoteCollector = MskGsVoteCollector(MyKFGI.MyKFGRI.VoteCollector);
|
||||
VoteCollector.NotifyLogout(C);
|
||||
|
||||
if (MskGsMemberList.Find(C) != INDEX_NONE)
|
||||
{
|
||||
MskGsMemberList.RemoveItem(C);
|
||||
if (bXpNotifications)
|
||||
{
|
||||
@ -348,6 +350,7 @@ function NotifyLogout(Controller C)
|
||||
}
|
||||
}
|
||||
MyKFGI.UpdateGameSettings();
|
||||
}
|
||||
|
||||
for (i = RepClients.Length - 1; i >= 0; i--)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user