summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_ghostship.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-05-04 13:50:55 -0400
committerGitHub <noreply@github.com>2026-05-04 13:50:55 -0400
commitdef3445cc69b874cdde54aaa082d6cceec5d42fc (patch)
tree82f65a62f5391221bb569d191a13697964ab25b1 /src/d/actor/d_a_ghostship.cpp
parent6bc01f1d02376ef07145899cbf6988453f67b10c (diff)
Fix particle_set inlines (#971)
Diffstat (limited to 'src/d/actor/d_a_ghostship.cpp')
-rw-r--r--src/d/actor/d_a_ghostship.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/d/actor/d_a_ghostship.cpp b/src/d/actor/d_a_ghostship.cpp
index abeb2856..9011a07e 100644
--- a/src/d/actor/d_a_ghostship.cpp
+++ b/src/d/actor/d_a_ghostship.cpp
@@ -286,16 +286,12 @@ static BOOL daGhostshipExecute(void* i_this) {
/* 00001048-0000182C .text _execute__13daGhostship_cFv */
bool daGhostship_c::_execute() {
f32 time = dComIfGs_getTime();
- f32 dist = fopAcM_searchActorDistanceXZ(this, dComIfGp_getPlayer(0));
+ fopAc_ac_c* player = dComIfGp_getPlayer(0);
+ // Fakematch, debug map says fopAcM_searchPlayerDistanceXZ was used
+ f32 dist = fopAcM_searchActorDistanceXZ(this, player);
mbCanEnterShip = false;
- if(moonPhase != dKy_moon_type_chk() ||
-#if VERSION == VERSION_DEMO
- (time > 90.0f && time < 330.0f)
-#else
- (time > 90.0f && time < 285.0f)
-#endif
- ) {
+ if(moonPhase != dKy_moon_type_chk() || (time > 90.0f && time < DEMO_SELECT(330.0f, 285.0f))) {
dKy_pship_existense_cut();
mAlpha = 0.0f;
}