mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
line 448: fix skybox mobj reference leak
Calling P_SetTarget on the temporary skybox_t is pointless. P_SwitchSkybox calls P_SetTarget when copying to the player struct.
This commit is contained in:
parent
4588a20a95
commit
77e5bb4d19
1 changed files with 2 additions and 2 deletions
|
|
@ -3707,7 +3707,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
else
|
else
|
||||||
set = NULL;
|
set = NULL;
|
||||||
|
|
||||||
P_SetTarget(&skybox.viewpoint, set);
|
skybox.viewpoint = set;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set centerpoint mobj
|
// set centerpoint mobj
|
||||||
|
|
@ -3718,7 +3718,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
||||||
else
|
else
|
||||||
set = NULL;
|
set = NULL;
|
||||||
|
|
||||||
P_SetTarget(&skybox.centerpoint, set);
|
skybox.centerpoint = set;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args[3]) // Applies to all players
|
if (args[3]) // Applies to all players
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue