From dc1e7165f7938812f6e0c825b45923bd825c50a2 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Thu, 27 Oct 2016 18:10:30 +0100 Subject: [PATCH] Created lua_blockmaplib.c, for Lua's blockmap library my P_SearchBlockmap_* functions are now a single searchBlockmap function, you can choose between "objects" and "lines" with the first arg to decide what to iterate through. I also rearranged the argument order a bit for easy stack cleanup etc I'll remove the old stuff later, don't worry, it's disabled for now --- SRB2.cbp | 15 ++ src/CMakeLists.txt | 1 + src/blua/Makefile.cfg | 1 + src/lua_baselib.c | 3 +- src/lua_blockmaplib.c | 248 +++++++++++++++++++++++++ src/lua_libs.h | 1 + src/lua_script.c | 1 + src/sdl/Srb2SDL-vc10.vcxproj | 1 + src/sdl/Srb2SDL-vc10.vcxproj.filters | 3 + src/win32/Srb2win-vc10.vcxproj | 1 + src/win32/Srb2win-vc10.vcxproj.filters | 3 + 11 files changed, 277 insertions(+), 1 deletion(-) create mode 100644 src/lua_blockmaplib.c diff --git a/SRB2.cbp b/SRB2.cbp index 99a712264..f56a9a160 100644 --- a/SRB2.cbp +++ b/SRB2.cbp @@ -2561,6 +2561,21 @@ HW3SOUND for 3D hardware sound support