Misc demo matches (#952)

This commit is contained in:
LagoLunatic
2026-04-14 20:33:05 -04:00
committed by GitHub
parent a62f436d22
commit 55a6be8b87
28 changed files with 1022 additions and 603 deletions
+3 -2
View File
@@ -121,7 +121,8 @@ bool daSwTact_c::_execute() {
if (player == NULL || dComIfGp_checkPlayerStatus0(0, daPyStts0_SHIP_RIDE_e))
return true;
if ((player->current.pos - current.pos).absXZ() <= getR()) {
f32 dist = (player->current.pos - current.pos).absXZ();
if (dist <= getR()) {
if (mPlayerStatus != stts1 && stts1 != 0) {
player->setTactZev(fopAcM_GetID(this), getAnswer(), NULL);
}
@@ -160,7 +161,7 @@ bool daSwTact_c::_execute() {
}
if (mTrigger != 0 && !dComIfGp_event_runCheck()) {
dComIfGs_onSwitch(mSwitchNo, fopAcM_GetHomeRoomNo(this));
fopAcM_onSwitch(this, mSwitchNo);
mTrigger = 0;
}