summaryrefslogtreecommitdiff
path: root/src/d/d_gameover.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-28 13:49:11 -0400
committerGitHub <noreply@github.com>2026-05-28 13:49:11 -0400
commit8b46c357e4b435b8bee091b66300816a8f508d8d (patch)
treef98e94d6a9d15878935ab6cb6c82f3b50ea49177 /src/d/d_gameover.cpp
parenta70388d63fd14bbeaad776b07a90504e8be86bcc (diff)
Demo work and fakematch cleanup (#1034)
Diffstat (limited to 'src/d/d_gameover.cpp')
-rw-r--r--src/d/d_gameover.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/d/d_gameover.cpp b/src/d/d_gameover.cpp
index a0f7a63b..bf58e008 100644
--- a/src/d/d_gameover.cpp
+++ b/src/d/d_gameover.cpp
@@ -176,7 +176,7 @@ BOOL dGameover_c::_delete() {
mpHeap->freeAll();
dComIfGp_offHeapLockFlag();
mDoExt_setCurrentHeap(oldHeap);
- dComIfG_resDelete(&mPhs, "Gover");
+ dComIfG_resDeleteDemo(&mPhs, "Gover");
return TRUE;
}
@@ -342,16 +342,13 @@ BOOL dDlst_GameOverScrnDraw_c::anime1(int idx) {
fopMsgM_setInitAlpha(&letter[idx]);
letter[idx].mUserArea++;
- f32 y = (1.0f - acc(5, letter[idx].mUserArea, 0)) * -288.0f;
- fopMsgM_paneTrans(&letter[idx], 0.0f, y);
+ fopMsgM_paneTrans(&letter[idx], 0.0f, (1.0f - acc(5, letter[idx].mUserArea, 0)) * -288.0f);
} else if (letter[idx].mUserArea < 7) {
letter[idx].mUserArea++;
- f32 y = acc(2, letter[idx].mUserArea - 5, 0) * -9.0f;
- fopMsgM_paneTrans(&letter[idx], 0.0f, y);
+ fopMsgM_paneTrans(&letter[idx], 0.0f, acc(2, letter[idx].mUserArea - 5, 0) * -9.0f);
} else if (letter[idx].mUserArea < 9) {
letter[idx].mUserArea++;
- f32 y = (1.0f - acc(2, letter[idx].mUserArea - 7, 0)) * -9.0f;
- fopMsgM_paneTrans(&letter[idx], 0.0f, y);
+ fopMsgM_paneTrans(&letter[idx], 0.0f, (1.0f - acc(2, letter[idx].mUserArea - 7, 0)) * -9.0f);
if (letter[idx].mUserArea == 9)
mDoAud_seStart(JA_SE_EXIT_GAME_OVER);
}