dSv_info_c::isActor OK

This commit is contained in:
Pheenoh 2021-01-03 03:22:30 -05:00
parent 5c4ac052c3
commit 5abaebc40d
No known key found for this signature in database
GPG Key ID: 4312662758CE7D5A
2 changed files with 2 additions and 9 deletions

View File

@ -804,6 +804,7 @@ public:
void init(int);
dSv_zoneBit_c& getZoneBit() { return zone_bit; }
dSv_zoneActor_c& getZoneActor() { return zone_actor; }
const dSv_zoneActor_c& getZoneActorConst() const { return zone_actor; }
s8& getUnk0() { return unk0; }

View File

@ -1452,22 +1452,14 @@ void dSv_info_c::offActor(int i_id, int i_roomNo) {
this->zones[zoneNo].getZoneActor().off(i_id);
}
// somewhat close
#ifdef NONMATCHING
BOOL dSv_info_c::isActor(int i_id, int i_roomNo) const {
if (i_id == -1 || i_id == dSv_zoneActor_c::ACTOR_MAX || i_roomNo == -1) {
return FALSE;
}
int ActorZoneNo = dStage_roomControl_c_NS_getZoneNo(i_roomNo, i_id);
return this->zones[ActorZoneNo].getZoneActor().is(i_id);
return this->zones[ActorZoneNo].getZoneActorConst().is(i_id);
}
#else
asm BOOL dSv_info_c::isActor(int i_id, int i_roomNo) const {
nofralloc
#include "d/d_save/d_save/asm/func_80035724.s"
}
#endif
#ifdef NONMATCHING
extern u8 lbl_803F6094[0x10100];