Subversion Repositories eduke32


Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4747 2369d 14h terminx /polymer/eduke32/ Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD.  
4746 2369d 14h terminx /polymer/eduke32/ Get rid of -Wdeclaration-after-statement as we're only targeting C99 and C++ now. DONT_BUILD.  
4745 2369d 14h terminx /polymer/eduke32/ Mainly misc cleanups (and a fix for the C++ build), but there are a few important changes in here.

VM_OnEvent() has become VM_OnEvent(), VM_OnEventWithReturn(), VM_OnEventWithDist(), and VM_OnEventWithBoth() (the latter of which is only ever used once...). Of course, this required every call to VM_OnEvent() be changed.

memberlabel_t and vmstate_t have been changed to use the regular "int" type versus explicitly specifying int32_t as they did previously. The rationale for this change is simply that it looks cleaner, and I think we should move toward just using "int" in most cases where there's no particular reason to specify an explicit data type.

Also changes CON_KILLIT to just "return" instead of "continue". DONT_BUILD.
4744 2369d 14h terminx /polymer/eduke32/ Inline krand() when not using KRANDDEBUG. DONT_BUILD.  
4743 2369d 14h terminx /polymer/eduke32/ Add FORCE_INLINE to compat.h and apply it to a couple of things we'd strongly prefer be inlined. DONT_BUILD.  
4742 2369d 14h terminx /polymer/eduke32/ 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.  
4741 2369d 14h terminx /polymer/eduke32/ Fix up conveyor belts. This fixes breakage of the movement in general, as well as corrects the general behavior of the effect so that a player on a moving surface is moved at a constant rate, regardless of whether the player crouches, is shrunk, etc. DONT_BUILD.  
4740 2369d 14h terminx /polymer/eduke32/ Fix Mapster32 fullscreen video modes. DONT_BUILD.  
4739 2374d 18h hendricks266 /polymer/eduke32/ Fix minor menu bugs. DONT_BUILD.  
4738 2374d 19h hendricks266 /polymer/eduke32/ Set up mouse cursor display in menus, with idle timeout fully implemented. No functionality yet. DONT_BUILD.  
4737 2384d 4h helixhorned /polymer/eduke32/ Fix C++ build. DONT_BUILD.  
4736 2384d 4h helixhorned /polymer/eduke32/ In release builds, #define Xaligned_alloc as xaligned_malloc.

Otherwise, the out-of-memory handler is not called in case of failure.
4735 2384d 4h helixhorned /polymer/eduke32/ C-CON: fix 'readgamearray' and 'resizearray' on Windows.

We must not use Xrealloc(), since gamearrays are now allocated with
NOTE: I did not check all potential problematic cases, only those to get
LNGA3 up and running.
4734 2384d 4h helixhorned /polymer/eduke32/ C-CON: fix 'readgamearray' on 64-bit platforms.

Also prettify P_DisplaySpit().
4733 2384d 4h helixhorned /polymer/eduke32/ a-c.c: don't USE_VECTOR_EXT with Clang, since it doesn't compile here.  
4732 2384d 4h helixhorned /polymer/eduke32/ LunaCON: player[].loogcnt, userdef[].color, minor fixes.  
4731 2384d 4h helixhorned /polymer/eduke32/ LunaCON: fix tilesizx[] and tilesizy[] system gamearrays.  
4730 2384d 19h hendricks266 /polymer/eduke32/ Replace DOS box-drawing characters in the ASM with sane ASCII. DONT_BUILD.  
4729 2385d 2h helixhorned /polymer/eduke32/ Lunatic: some minor doc tweaks. DONT_BUILD.  
4728 2385d 3h helixhorned /polymer/eduke32/ Fix voxels in classic -- my error, confusing divscale() and mulscale() in r4576.

Optimizations are left to the reader :P. I would prefer to look for ways of
giving the compilers hints about loops to unroll instead of having to read
the resulting mess of manual unrolling, though.

Show All