raze/polymer/eduke32
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
..
build CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
jit Bump jit/bcsave.lua to the one from LuaJIT 2.0.3. 2014-04-05 11:28:02 +00:00
package Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it. 2014-07-20 08:55:56 +00:00
platform Wii: Output and package the binary as .dol instead of .elf. 2014-12-18 18:15:05 +00:00
rsrc Restore SDL 1.2 on Windows to a working state. DONT_BUILD. 2014-11-29 03:07:33 +00:00
source CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
_clang-format Add my _clang-format file to the repository. These options are pretty close to what most of our code already looks like, the primary difference being that it enforces spaces between operators and operands. I was initially opposed to the spaces, but I would be lying if I said they didn't increase legibility of much of our code, in addition to making it a lot easier to identify the specific intent in cases where we have a lot of expressions nested within one another. DONT_BUILD. 2014-11-22 12:28:21 +00:00
Android.mk Get rid of -Wdeclaration-after-statement as we're only targeting C99 and C++ now. DONT_BUILD. 2014-11-22 12:29:38 +00:00
eduke32.sln MSVC: Set up support for SDL2. DONT_BUILD. 2014-02-11 07:39:09 +00:00
eduke32.vcxproj WIP refactor of SDL interface. DONT_BUILD. 2014-11-22 12:33:47 +00:00
eduke32.vcxproj.filters WIP refactor of SDL interface. DONT_BUILD. 2014-11-22 12:33:47 +00:00
Makefile Wii: Output and package the binary as .dol instead of .elf. 2014-12-18 18:15:05 +00:00
Makefile.common Wii: Output and package the binary as .dol instead of .elf. 2014-12-18 18:15:05 +00:00
Makefile.deps Mapster32: prototypical checker for wall loops, enabled partially. 2014-08-08 20:02:54 +00:00
Makefile.msvc Fix a couple of Makefile errors Helixhorned noticed. DONT_BUILD. 2014-11-02 05:34:49 +00:00