d_a_npc_saltalk OK

This commit is contained in:
elijah-thomas774
2024-11-14 22:49:24 -05:00
parent fea7ebb5c8
commit 5c4755eac2
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ bool dAcNpcSltk_c::isSomething1() const {
return getSomething() == 1;
}
bool dAcNpcSltk_c::checkSomething(mVec3_c pos) {
bool dAcNpcSltk_c::checkSomething(mVec3_c pos) const {
if (mAreaIndex != 0xFF) {
return checkPosInArea(mAreaIndex, roomid, pos, &mpArea) == 1;
} else {
@@ -145,7 +145,7 @@ bool dAcNpcSltk_c::checkSomething(mVec3_c pos) {
// TODO reload from position.y here
f32 fDist = field_0x75C + position.y;
f32 fDist2 = position.y;
if (fDist <= position.y) {
if (fDist <= fDist2) {
fDist2 = fDist;
fDist = position.y;
}