mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Fixed attempts to teleport a kicked/non spawning central bot.
This commit is contained in:
parent
81da15c1ed
commit
daa291f8ba
@ -2338,10 +2338,14 @@ void StopCentralReplay(int client)
|
|||||||
gI_ReplayTick[style] = 0;
|
gI_ReplayTick[style] = 0;
|
||||||
gI_ReplayBotClient[style] = 0;
|
gI_ReplayBotClient[style] = 0;
|
||||||
gF_StartTick[style] = -65535.0;
|
gF_StartTick[style] = -65535.0;
|
||||||
TeleportToStart(gA_CentralCache.iClient, style, GetReplayTrack(gA_CentralCache.iClient));
|
|
||||||
gA_CentralCache.iStyle = 0;
|
gA_CentralCache.iStyle = 0;
|
||||||
gB_ForciblyStopped = true;
|
gB_ForciblyStopped = true;
|
||||||
|
|
||||||
|
if(gA_CentralCache.iClient != -1)
|
||||||
|
{
|
||||||
|
TeleportToStart(gA_CentralCache.iClient, style, GetReplayTrack(gA_CentralCache.iClient));
|
||||||
|
}
|
||||||
|
|
||||||
UpdateReplayInfo(client, 0, 0.0, gA_CentralCache.iTrack);
|
UpdateReplayInfo(client, 0, 0.0, gA_CentralCache.iTrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user