Build 3329
SVN-
General
Encapsulate aplWeapon* array accesses in a PWEAPON(Player, Weapon, Wmember) macro.
Show details
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].
-
General
Replace wall of dup'd code in Gv_AddSystemVars with something more readable.
Show details
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.