Subversion Repositories eduke32

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4658 2432d 12h terminx /polymer/eduke32/source/gamevars.h Various additional optimizations: add CLASSIC_SLICE_BY_4 mode to unroll some of the loops in a-c, replace integer divisions by a divisor unknown at compile time with usage of libdivide, clean up pragmas further by removing more old stuff that wasn't used anywhere. This is another one of those nasty commits that make people cry. DONT_BUILD.  
4631 2457d 11h terminx /polymer/eduke32/source/gamevars.h Gamevar cleanup: drop "register" qualifiers, shuffle a few things around.  
4541 2529d 7h hendricks266 /polymer/eduke32/source/gamevars.h 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.

DONT_BUILD.
 
4286 2698d 19h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: Fix compilation of C++ build, but not starting up yet.

BUILD_LUNATIC.
 
3848 2942d 2h helixhorned /polymer/eduke32/source/gamevars.h LunaCON: proper handling of dynamic remappings with weapon defaults.

That is, the gamevars named WEAPONx_* in CON will now have the remapped value
if they were not overridden from CON ('gamevar' at file scope).
For C-CON, everything except signaling an override from the CON parser is in
place.
 
3830 2944d 22h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: also reset per-actor gamevars from spawns originating from C.

Take care not to do it twice. Still untested though.
 
3791 2955d 20h helixhorned /polymer/eduke32/source/gamevars.h Remove redundant checks for some map state function uses.

Also, prettify G_FreeMapState(), remove some duplicate function decls and
resurrect 'savestate' and 'restorestate' OSD commands for the debug build.
 
3789 2955d 20h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: conditionally compile out more code in savegame/gamevars.[ch].

Also, make the savegame major version 2 in the Lunatic build.
 
3556 3023d 5h helixhorned /polymer/eduke32/source/gamevars.h Lunatic translator: handle LOGO_FLAGS.

This is the only gamevar of its kind that is handled for Lunatic, neither
PLR_MORALE nor LOGO_FLAGS are.
 
3459 3056d 19h helixhorned /polymer/eduke32/source/gamevars.h Move around some #ifdef LUNATIC to compile out more code, minor cleanup.  
3417 3074d 18h helixhorned /polymer/eduke32/source/gamevars.h CON/m32script: remove GAMEVAR_DEFAULT uses, since they had no effect.

In CON, the bit is still always cleared for user-defined gamevars.
 
3415 3074d 18h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: cmdline switch to run test script, compile out more code, 2 more GVs.  
3410 3075d 21h helixhorned /polymer/eduke32/source/gamevars.h Remove mixed Lunatic/legacy build option.  
3355 3094d 0h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: definesound, more control.lua fixes.  
3354 3094d 0h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: compile out more code with LUNATIC_ONLY.  
3343 3097d 0h helixhorned /polymer/eduke32/source/gamevars.h Lunatic: beginning to glue things together. Introducing LUNATIC_ONLY.  
3274 3113d 13h hendricks266 /polymer/eduke32/source/gamevars.h Port system gamearray access from M32Script to CON. Expose tilesizx and tilesizy.

Also, fix deficient logic in Gv_Free and Gv_Clear (both M32 and CON) so that gamevar and gamearray erasure results are (closer to) correct, and so that the game does not crash when system arrays are accessed from CON because they all have been nulled.
 
3268 3114d 13h terminx /polymer/eduke32/source/gamevars.h Move the definitions like MAXGAMEVARS out of the enums used for the gamevar flags, because it didn't really make a whole lot of sense for them to be there.  
3267 3114d 13h terminx /polymer/eduke32/source/gamevars.h Replace the separate full Gv_AddVar/SubVar/etc functions with a macro that generates them since they were all the same anyway (other than the operator, obviously)  
2689 3315d 0h helixhorned /polymer/eduke32/source/gamevars.h Fix gamearrays on 64-bit platforms.

They were broken by r2666, which made their elements intptr_t instead of
int32_t, but this change was not reflected in related allocation code.
WARNING: players on 64-bit platforms should not attempt to load games saved
with r2665 or earlier.
 

Show All