mirror of
https://github.com/rehlds/rehlds.git
synced 2025-03-31 22:59:06 +03:00
Don\t check for active demo when setting next world.
Fix not-initated variable newTarget and newTarget2
This commit is contained in:
parent
300d03eb85
commit
1457af4dbe
@ -372,7 +372,7 @@ float Director::AddBestGenericCut()
|
||||
float sumTarget2Rank[MAX_CLIENTS];
|
||||
float bestTarget2Rank, bestRank = 0;
|
||||
float targetRankSum = 0;
|
||||
int newTarget, newTarget2;
|
||||
int newTarget = 0, newTarget2 = 0;
|
||||
int bestTarget2;
|
||||
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
|
@ -100,16 +100,19 @@ void Proxy::AddNextWorld()
|
||||
}
|
||||
|
||||
nextWorld->RegisterListener(this);
|
||||
|
||||
|
||||
m_Worlds.AddTail(nextWorld);
|
||||
m_Server->SetWorld(nextWorld);
|
||||
if (m_Server->IsConnected()) {
|
||||
m_Server->Reconnect();
|
||||
}
|
||||
|
||||
if (m_DemoClient.IsActive())
|
||||
{
|
||||
m_DemoClient.Reconnect();
|
||||
m_DemoClient.SetWorld(nextWorld);
|
||||
m_DemoClient.FinishDemo();
|
||||
}
|
||||
|
||||
m_Server->SetWorld(nextWorld);
|
||||
m_DemoClient.SetWorld(nextWorld);
|
||||
|
||||
if (m_Server->IsConnected()) {
|
||||
m_Server->Reconnect();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user