mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-09 23:26:08 +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
|
||||
set = NULL;
|
||||
|
||||
P_SetTarget(&skybox.viewpoint, set);
|
||||
skybox.viewpoint = set;
|
||||
}
|
||||
|
||||
// set centerpoint mobj
|
||||
|
|
@ -3718,7 +3718,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
|||
else
|
||||
set = NULL;
|
||||
|
||||
P_SetTarget(&skybox.centerpoint, set);
|
||||
skybox.centerpoint = set;
|
||||
}
|
||||
|
||||
if (args[3]) // Applies to all players
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue