From 14da6cd460def7a4b4ddb199efc5a0f3e9a59cd0 Mon Sep 17 00:00:00 2001 From: robojumper Date: Mon, 15 Sep 2025 22:25:44 +0200 Subject: Try an operator overload --- include/d/a/npc/d_a_npc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/d') diff --git a/include/d/a/npc/d_a_npc.h b/include/d/a/npc/d_a_npc.h index 253ec416..90fa4b8e 100644 --- a/include/d/a/npc/d_a_npc.h +++ b/include/d/a/npc/d_a_npc.h @@ -87,8 +87,7 @@ public: /* 0x0C */ virtual void calc() override; /* 0x10 */ virtual bool isDone() override { - // TODO - this matches, but maybe an operator overload? - return mCurrent.x == mTarget.x && mCurrent.y == mTarget.y && mCurrent.z == mTarget.z; + return mCurrent == mTarget; } /* 0x20 */ virtual void vt_0x20(const dAcBase_c *) {} }; -- cgit v1.2.3