mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 00:42:32 +00:00
Only do this if you're the server :VVV
This commit is contained in:
parent
efc8ce335c
commit
9429ae80e1
1 changed files with 5 additions and 1 deletions
|
|
@ -103,6 +103,11 @@ void K_UpdateMatchRaceBots(void)
|
||||||
SINT8 wantedbots = 0;
|
SINT8 wantedbots = 0;
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
if (!server)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (difficulty != 0)
|
if (difficulty != 0)
|
||||||
{
|
{
|
||||||
if (cv_ingamecap.value > 0)
|
if (cv_ingamecap.value > 0)
|
||||||
|
|
@ -182,7 +187,6 @@ void K_UpdateMatchRaceBots(void)
|
||||||
buf[1] = KR_LEAVE;
|
buf[1] = KR_LEAVE;
|
||||||
SendNetXCmd(XD_REMOVEPLAYER, &buf, 2);
|
SendNetXCmd(XD_REMOVEPLAYER, &buf, 2);
|
||||||
|
|
||||||
CONS_Printf("Removed bot %s\n", player_names[i]);
|
|
||||||
numbots--;
|
numbots--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue