raze/polymer/eduke32/source/lunatic/test
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
..
animatesprites.con LunaCON: provide access to wall[].blend. 2014-03-25 21:04:37 +00:00
checknearwall.con CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
damagehplane.lua Lunatic: swap con.insetsprite's 4th and 5th positional arguments. 2013-12-26 19:45:06 +00:00
dangling_else.con Lunatic translator: else if* -> elseif, fix codegen for "if {}". 2013-03-17 18:11:44 +00:00
delmusicsfx.lua Lunatic: swap first and second arg of con.spawn(). 2013-07-09 18:23:41 +00:00
else_brace_if.con LunaCON: fix mistranslation of CON "else { if" to Lua "elseif". 2013-06-01 20:09:37 +00:00
event_chaining.con build.lua: add "artfile" class, allowing to open and get pics from an ART file. 2013-10-16 19:42:59 +00:00
gamearray.con LunaCON: player[].loogcnt, userdef[].color, minor fixes. 2014-11-07 22:07:10 +00:00
gettimedate.con LunaCON: showview and showviewunbiased. 2013-06-07 14:26:32 +00:00
getuserdef.con LunaCON: accept empty square brackets for {g,s}etuserdef optional index part. 2014-02-01 16:19:55 +00:00
helixspawner.lua Lunatic: swap con.insetsprite's 4th and 5th positional arguments. 2013-12-26 19:45:06 +00:00
mapstate.con LunaCON: implement NODEFAULT flag (1024) as session variables. 2013-10-20 12:35:06 +00:00
maputil.lua a.m32: add state 'for_sprites_near_picnum'. 2014-04-05 11:28:08 +00:00
nlcf_break.con CON: Add predefined labels MAXSPRITES, MAXSTATUS and MAX_WEAPONS. 2013-07-13 21:04:41 +00:00
nlcf_return.con Lunatic translator: handle -mx. 2013-01-13 16:40:07 +00:00
qgetsysstr.con C-CON: add safety checks for qgetsysstr/STR_{,MAP,PLAYER,VOLUME}NAME. 2014-03-16 14:37:54 +00:00
qsubstr.con LunaCON: implement 'qsubstr' command. Add source/lunatic/test/qsubstr.con. 2014-08-31 11:15:22 +00:00
quote_ops.con LunaCON: implement 'qstrncat' command. 2014-12-05 23:12:33 +00:00
rotfixed_actor.con LunaCON: implement 'ssp' command. 2013-11-12 21:03:11 +00:00
screentext.con CON: in rotatespritea and screentext, if alpha < 0, make -alpha denote blend. 2014-04-09 18:51:35 +00:00
shadexfog.lua Lunatic: for '(display)rand*', use math.floor(); correct create_additive_trans() help. 2014-12-14 20:48:05 +00:00
sprite_access.con Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD. 2014-12-20 13:08:27 +00:00
sprite_addtv.con Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD. 2014-12-20 13:08:27 +00:00
switch.con engine.c: after creating gray fog palookup, make its greatest shade map to same color. 2014-04-29 19:34:25 +00:00
tables.lua Add lunatic/test/tables.lua, which was used to compare the calc'd sin/atan values. 2012-09-02 14:09:49 +00:00
test_bitar.lua Lunatic: fix some must-fail tests and module()s without require'end_gamevars'. 2013-07-19 12:49:05 +00:00
test_dists.lua Lunatic: various changes. 2013-07-04 19:38:46 +00:00
test_geom.lua Lunatic doc: add some text and examples for using require()/module(). 2013-09-08 20:18:51 +00:00
test_rotspr.lua Lunatic: allow serialization of tables in more general cases. 2013-06-28 14:07:39 +00:00
weaponvars.con LunaCON: implement 'tossweapon'. 2013-07-13 21:04:38 +00:00