summaryrefslogtreecommitdiff
path: root/src/code/z_actor.c
diff options
context:
space:
mode:
authorpetrie911 <petrie911@users.noreply.github.com>2022-10-09 12:28:47 -0500
committerpetrie911 <petrie911@users.noreply.github.com>2022-10-09 12:28:47 -0500
commit01bcdd939cdca378f030ea5ae792dbaa27588dec (patch)
tree11b3f9b46b50dbc98e46c96d1a2ef1675084a5c2 /src/code/z_actor.c
parentb7b4b09e4d329cdf71480d799f6dd3a237bb809a (diff)
parente75b0c51f5a0856e03d7c5fd2e16171a982c4e53 (diff)
Merge remote-tracking branch 'upstream/master' into Aliens
Diffstat (limited to 'src/code/z_actor.c')
-rw-r--r--src/code/z_actor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 84616f083..c5783f4d7 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -861,10 +861,11 @@ void TitleCard_Draw(GameState* gameState, TitleCardContext* titleCtx) {
OPEN_DISPS(gameState->gfxCtx);
- height = (width * height > TMEM_SIZE) ? TMEM_SIZE / width : height;
- spB4 = spB8 + (height * 4);
+ if (width * height > TMEM_SIZE) {
+ height = TMEM_SIZE / width;
+ }
- if (1) {}
+ spB4 = spB8 + (height * 4);
OVERLAY_DISP = func_8012C014(OVERLAY_DISP);