From 5ccb741049a1735764c97fc5772de837b5a86dec Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Tue, 31 Oct 2017 16:08:21 +0200 Subject: [PATCH] Fix inconsistencies --- WorldObjectMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index db72bd9..85b0dfb 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -945,7 +945,7 @@ namespace LuaWorldObject { WorldObject* target = Eluna::CHECKOBJ(L, 2, true); float distance = Eluna::CHECKVAL(L, 3); - float is3D = Eluna::CHECKVAL(L, 4, true); + bool is3D = Eluna::CHECKVAL(L, 4, true); Eluna::Push(L, obj->IsWithinDist(target, distance, is3D)); return 1; } @@ -964,7 +964,7 @@ namespace LuaWorldObject { WorldObject* target = Eluna::CHECKOBJ(L, 2); float distance = Eluna::CHECKVAL(L, 3); - float is3D = Eluna::CHECKVAL(L, 4, true); + bool is3D = Eluna::CHECKVAL(L, 4, true); Eluna::Push(L, obj->IsWithinDistInMap(target, distance)); return 1; @@ -986,7 +986,7 @@ namespace LuaWorldObject WorldObject* target = Eluna::CHECKOBJ(L, 2); float minrange = Eluna::CHECKVAL(L, 3); float maxrange = Eluna::CHECKVAL(L, 4); - float is3D = Eluna::CHECKVAL(L, 5, true); + bool is3D = Eluna::CHECKVAL(L, 5, true); Eluna::Push(L, obj->IsInRange(target, minrange, maxrange, is3D)); return 1;