From eda16cacb5d00b13ce6bce0bf52c1789653ea4e5 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 29 Mar 2023 03:53:10 -0700 Subject: [PATCH] line 448: do not change skybox after player finishes the race --- src/p_spec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index 3d4cbabcd..32ca12dd7 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -2415,6 +2415,16 @@ static mobj_t *P_GetObjectTypeInSectorNum(mobjtype_t type, size_t s) static void P_SwitchSkybox(INT32 args, player_t *player, skybox_t *skybox) { + // After a player finishes, their camera is locked at the + // finish line. If bot behavior drives them through the + // circuit and changes the skybox, that can look very + // strange if the skybox change is intended to be + // localized to a certain section of the level. + if (player->exiting) + { + return; + } + if (args != TMS_CENTERPOINT) // Only viewpoint, or both. { P_SetTarget(&player->skybox.viewpoint, skybox->viewpoint);