summaryrefslogtreecommitdiff
path: root/src/code/z_play.c
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2024-01-14 10:56:19 -0800
committerGitHub <noreply@github.com>2024-01-14 15:56:19 -0300
commit663834cbc087ab7bbc9b20b48d6f06eaae4d4341 (patch)
tree0190f7985536687036148325d5d9e86419e5a710 /src/code/z_play.c
parentb2c3cc6a11d2a8e9d310fc15c11f1f25efed8a33 (diff)
Skybox Docs (#1534)
* xml * Docs * 0s
Diffstat (limited to 'src/code/z_play.c')
-rw-r--r--src/code/z_play.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c
index 7e285f02f..a193038d0 100644
--- a/src/code/z_play.c
+++ b/src/code/z_play.c
@@ -1140,7 +1140,7 @@ void Play_DrawMain(PlayState* this) {
}
if ((R_PAUSE_BG_PRERENDER_STATE <= PAUSE_BG_PRERENDER_SETUP) && (gTransitionTileState <= TRANS_TILE_SETUP)) {
- if (this->skyboxCtx.skyboxShouldDraw || (this->roomCtx.curRoom.roomShape->base.type == ROOM_SHAPE_TYPE_IMAGE)) {
+ if (this->skyboxCtx.shouldDraw || (this->roomCtx.curRoom.roomShape->base.type == ROOM_SHAPE_TYPE_IMAGE)) {
func_8012CF0C(gfxCtx, false, true, 0, 0, 0);
} else {
func_8012CF0C(gfxCtx, true, true, this->lightCtx.fogColor[0], this->lightCtx.fogColor[1],
@@ -1282,7 +1282,7 @@ void Play_DrawMain(PlayState* this) {
Environment_UpdateSkybox(this->skyboxId, &this->envCtx, &this->skyboxCtx);
Skybox_Draw(&this->skyboxCtx, gfxCtx, this->skyboxId, this->envCtx.skyboxBlend,
this->view.eye.x, this->view.eye.y, this->view.eye.z);
- } else if (!this->skyboxCtx.skyboxShouldDraw) {
+ } else if (!this->skyboxCtx.shouldDraw) {
Skybox_Draw(&this->skyboxCtx, gfxCtx, this->skyboxId, 0, this->view.eye.x, this->view.eye.y,
this->view.eye.z);
}
@@ -1310,7 +1310,7 @@ void Play_DrawMain(PlayState* this) {
}
}
- if (this->skyboxCtx.skyboxShouldDraw) {
+ if (this->skyboxCtx.shouldDraw) {
Vec3f quakeOffset;
if (1) {