diff --git a/Source/engine/path.cpp b/Source/engine/path.cpp index bf93e0eb9..751c0da54 100644 --- a/Source/engine/path.cpp +++ b/Source/engine/path.cpp @@ -329,7 +329,7 @@ bool IsTileWalkable(Point position, bool ignoreDoors) { Object *object = FindObjectAtPosition(position); if (object != nullptr) { - if (ignoreDoors && object->IsDoor()) { + if (ignoreDoors && object->isDoor()) { return true; } if (object->_oSolidFlag) { diff --git a/Source/objects.h b/Source/objects.h index 305aa302e..747435b79 100644 --- a/Source/objects.h +++ b/Source/objects.h @@ -222,7 +222,7 @@ struct Object { * @brief Check if this object is a door * @return True if the object is one of the door types (see _object_id) */ - [[nodiscard]] constexpr bool IsDoor() const + [[nodiscard]] constexpr bool isDoor() const { return IsAnyOf(_otype, _object_id::OBJ_L1LDOOR, _object_id::OBJ_L1RDOOR, _object_id::OBJ_L2LDOOR, _object_id::OBJ_L2RDOOR, _object_id::OBJ_L3LDOOR, _object_id::OBJ_L3RDOOR, _object_id::OBJ_L5LDOOR, _object_id::OBJ_L5RDOOR); } diff --git a/Source/track.cpp b/Source/track.cpp index 51721de33..6b7c4d724 100644 --- a/Source/track.cpp +++ b/Source/track.cpp @@ -109,7 +109,7 @@ void RepeatMouseAction() CheckPlrSpell(false); break; case MouseActionType::OperateObject: - if (ObjectUnderCursor != nullptr && !ObjectUnderCursor->IsDoor()) { + if (ObjectUnderCursor != nullptr && !ObjectUnderCursor->isDoor()) { // This should probably be cursPosition so paths to large objects are consistent NetSendCmdLoc(MyPlayerId, true, CMD_OPOBJXY, ObjectUnderCursor->position); }