raze-gles/polymer/eduke32/source/lunatic
helixhorned b0c48eec25 CON: always return non-negative values from 'clipmove' and related.
Previously, the C function clipmove() returned negative values when hit a
wall (32768+wallnum) or sprite (49152+spritenum) because internally,
these values were encoded into a *signed* 16-bit integer. This made no
difference to C code using it, since it always proceeded by bit checks,
but was inconsistent with documentation on CON 'clipmove' on the wiki.

The following commands are affected too, since they use the value returned
by clipmove(): 'clipmovenoslide', 'movesprite'. Also, the value of
actor[].movflag ('htmovflag' from CON).

Also, fix 'clipmove*' in LunaCON and add lunatic/test/checknearwall.con
as an example of how to implement a being-close-to-a-wall checker as
requested in
http://forums.duke4.net/topic/7869-determining-closeness-to-a-wall/

git-svn-id: https://svn.eduke32.com/eduke32@4874 1a8010ca-5511-0410-912e-c29ae57300e0
2015-01-04 18:44:58 +00:00
..
doc Lunatic translator: add stand-alone option -fnames, generating names.h file. 2014-12-28 15:40:04 +00:00
m32 Rename the external 'gethitickms()' to 'gethiticks()'. 2013-07-07 20:59:05 +00:00
test CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
util lunatic/util/build.lua: in readdefs(), add option of requesting picnum->name mapping. 2014-06-01 20:50:14 +00:00
bcarray.lua Lunatic: remap16 method for engine.shadetab, 2nd attempt at recreating orig. one. 2014-01-05 14:06:14 +00:00
bcheck.lua Lunatic: fix setup under Mapster32, remove a few obsolete lines in defs_common.lua. 2013-12-31 11:51:55 +00:00
bitar.lua Lunatic: prototypical gamevar serialization, currently very CON-centric. 2013-05-20 19:31:42 +00:00
con_lang.lua LunaCON: expose more members, properly handle setting ud.screen_size. 2014-12-13 22:33:07 +00:00
control.lua CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
defs.ilua Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD. 2014-12-20 13:08:27 +00:00
defs_common.lua LunaCON: fix tilesizx[] and tilesizy[] system gamearrays. 2014-11-07 22:07:07 +00:00
defs_m32.ilua Lunatic: add 'engine' module, currently allowing to create custom shade tables. 2013-12-31 11:52:00 +00:00
dis_x64.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dis_x86.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dump.lua A couple of minor changes. 2013-09-05 17:37:44 +00:00
dynsymlist LunaCON: expose more members, properly handle setting ud.screen_size. 2014-12-13 22:33:07 +00:00
dynsymlist_m32 LunaCON: fix tilesizx[] and tilesizy[] system gamearrays. 2014-11-07 22:07:07 +00:00
engine.lua lunatic/test/shadexfog.lua: add function create_brightpass_trans(). 2014-05-22 11:17:51 +00:00
engine_maptext.lua Rename sector[].filler member to '.fogpal'. From CON, keep the '.alignto' alias. 2014-04-05 11:28:10 +00:00
fs.lua Lunatic: in fs.listpath() use FIND_NOCURDIR. Also document that function. 2013-12-01 18:28:02 +00:00
listglobals.sh Lunatic: gv.getangle() vs. analogous Lua function test, add some anchors to doc. 2013-09-05 17:37:36 +00:00
lunacon.lua CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
lunatic_game.c Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
lunatic_game.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
lunatic_m32.c Lunatic: make it possible to build with LuaJIT 2.1, add -Lopts=profile there. 2013-10-16 19:43:06 +00:00
lunatic_m32.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
profdemo.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
randgen.lua Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD. 2014-10-30 21:44:22 +00:00
savegame.lua LunaCON: implement NORESET flag for gamevars. 2013-11-08 18:08:37 +00:00
stat.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
strict.lua Lunatic t.: handle prefix-problematic commands for real, definelevelname, ... 2012-06-17 19:45:37 +00:00
test.lua Lunatic: for gameactor(), deprecate AF.replace_hard, make AF.replace default. 2014-03-15 14:10:50 +00:00
v.lua A couple of minor changes. 2013-09-05 17:37:44 +00:00
xmath.lua Lunatic: make hitscan accept ray as vector, add xmath.kangvec. 2013-09-13 20:23:54 +00:00