.
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())
|
if (KFGI.WorldInfo.IsConsoleDedicatedServer() || KFGI.WorldInfo.IsEOSDedicatedServer())
|
||||||
{
|
{
|
||||||
KFGameSettings.MapName = KFGI.WorldInfo.GetMapName(true);
|
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)
|
foreach KFGI.WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator
|
||||||
&& !PC.PlayerReplicationInfo.bBot)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
|
|
||||||
|
@ -322,6 +322,8 @@ function NotifyLogout(Controller C)
|
|||||||
VoteCollector = MskGsVoteCollector(MyKFGI.MyKFGRI.VoteCollector);
|
VoteCollector = MskGsVoteCollector(MyKFGI.MyKFGRI.VoteCollector);
|
||||||
VoteCollector.NotifyLogout(C);
|
VoteCollector.NotifyLogout(C);
|
||||||
|
|
||||||
|
if (MskGsMemberList.Find(C) != INDEX_NONE)
|
||||||
|
{
|
||||||
MskGsMemberList.RemoveItem(C);
|
MskGsMemberList.RemoveItem(C);
|
||||||
if (bXpNotifications)
|
if (bXpNotifications)
|
||||||
{
|
{
|
||||||
@ -348,6 +350,7 @@ function NotifyLogout(Controller C)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
MyKFGI.UpdateGameSettings();
|
MyKFGI.UpdateGameSettings();
|
||||||
|
}
|
||||||
|
|
||||||
for (i = RepClients.Length - 1; i >= 0; i--)
|
for (i = RepClients.Length - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user