From aa60f7cac22466544f96f58043fa005f3fb8c356 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 27 Feb 2013 00:06:16 +0100 Subject: [PATCH] Fix oversight in the Lua interface that would cause certain quad_*() functions not to be registered. Really wonder why this never failed, and I just noticed this by accident... --- Aquaria/ScriptInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index 45232af..48d4510 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -6379,7 +6379,7 @@ luaFunc(entity_getNearestEntity) nameCheck = false; } - float range = lua_tointeger(L, 3); + float range = lua_tonumber(L, 3); EntityType type = ET_NOTYPE; if (lua_isnumber(L, 4)) type = (EntityType)lua_tointeger(L, 4); @@ -8218,6 +8218,8 @@ static const struct { // obj_* are not in the define above MAKE_ROBJ_FUNCS(_, obj) + // same for quad_* base functions + MAKE_QUAD_FUNCS(_, quad) // -- overrides / special cases--