mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ring Shooter: Only P_SetTarget if player is in game
This commit is contained in:
parent
c20a76586c
commit
beebfd0d2f
1 changed files with 5 additions and 2 deletions
|
|
@ -63,8 +63,11 @@ static void RemoveRingShooterPointer(mobj_t *base)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NULL the player's pointer.
|
// NULL the player's pointer.
|
||||||
player = &players[ rs_base_playerid(base) ];
|
if (playeringame[ rs_base_playerid(base) ])
|
||||||
P_SetTarget(&player->ringShooter, NULL);
|
{
|
||||||
|
player = &players[ rs_base_playerid(base) ];
|
||||||
|
P_SetTarget(&player->ringShooter, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
// Remove our player ID
|
// Remove our player ID
|
||||||
rs_base_playerid(base) = -1;
|
rs_base_playerid(base) = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue