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
4385 2765d 21h terminx /polymer/eduke32/source/gamedef.h Widespread use of ARRAY_SIZE macro.  
4146 2896d 14h helixhorned /polymer/eduke32/source/gamedef.h CON: add sprite pseudo-member 'isvalid', getting 1 if the sprite is valid.

And 0 otherwise. Before accessing a sprite that is not not known to be
definitely valid (e.g. a loop over all sprites from 0 to MAXSPRITES-1),
one should check for validity before accessing it in any other fashion.
 
3961 3012d 13h helixhorned /polymer/eduke32/source/gamedef.h Retire global 'lastvisinc'.

It was only ever used as upper bound to the time that a visibility change
decays, but since it does that in an exponential fashion, there's really
no point.
 
3945 3017d 10h helixhorned /polymer/eduke32/source/gamedef.h LunaCON: add forgotted "screensound" to keyword list in con_lang.lua.

Also, fix 'spriteflags' directive.
 
3912 3032d 17h helixhorned /polymer/eduke32/source/gamedef.h CON: New command 'screensound', unconditionally playing a session-wide sound.  
3866 3051d 14h helixhorned /polymer/eduke32/source/gamedef.h CON: add projectile member .userdata and predefined label PROJ_USERDATA.

It is a 32-bit signed integer. No version bump necessary, although CON code
accessing this new member will not work with earlier revisions (obviously).
 
3834 3060d 0h hendricks266 /polymer/eduke32/source/gamedef.h Dynamicsoundremap.  
3833 3060d 0h hendricks266 /polymer/eduke32/source/gamedef.h Add qstrdim and screentext, powerful new functions for HUD text.  
3803 3068d 12h terminx /polymer/eduke32/source/gamedef.h Add support for shareware 0.99/1.0/1.1, for shits and giggles.  
3610 3128d 2h hendricks266 /polymer/eduke32/source/gamedef.h Add "rotatespritea" to CON and M32script.

I hope I didn't bruise Lunatic too much.
 
3463 3173d 10h helixhorned /polymer/eduke32/source/gamedef.h Lunatic: projectiles...  
3459 3173d 10h helixhorned /polymer/eduke32/source/gamedef.h Move around some #ifdef LUNATIC to compile out more code, minor cleanup.  
3415 3191d 9h helixhorned /polymer/eduke32/source/gamedef.h Lunatic: cmdline switch to run test script, compile out more code, 2 more GVs.  
3410 3192d 12h helixhorned /polymer/eduke32/source/gamedef.h Remove mixed Lunatic/legacy build option.  
3408 3192d 12h helixhorned /polymer/eduke32/source/gamedef.h Consolidate badly named HUD weapon globals ("g_looking_angSR1") into struct.  
3356 3210d 15h helixhorned /polymer/eduke32/source/gamedef.h Factor out some code into C_AllocQuote() and C_InitQuotes().

In Lunatic-only build, also always allocate the first 128 quotes.
 
3354 3210d 15h helixhorned /polymer/eduke32/source/gamedef.h Lunatic: compile out more code with LUNATIC_ONLY.  
3328 3214d 13h helixhorned /polymer/eduke32/source/gamedef.h Encapsulate aplWeapon* array accesses in a PWEAPON(Player, Weapon, Wmember) macro.

In the normal game, these arrays are conceptually [MAX_WEAPONS][MAXPLAYERS],
allocated as CON per-player gamevars (e.g. WEAPONx_WORKSLIKE).
For Lunatic, they are replaced with
weapondata_t g_playerWeapon[MAXPLAYERS][MAX_WEAPONS].
 
3327 3214d 13h helixhorned /polymer/eduke32/source/gamedef.h Replace wall of dup'd code in Gv_AddSystemVars with something more readable.

Specifically, have a weapondata_t type mimicking the aplWeapon* arrays.
Keep a list weapondefaults[] which undergoes some static->dynamic tweaks
and then makes its way to the WEAPONx_XXX per-player gamevars.
 
3274 3230d 4h hendricks266 /polymer/eduke32/source/gamedef.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.
 

Show All