------------------------------------------------------------------------ r3329 | helixhorned | 2012-12-28 09:18:18 -0800 (Fri, 28 Dec 2012) | 1 line DEF "voxel": fix a tile range check failure message. ------------------------------------------------------------------------ r3328 | helixhorned | 2012-12-28 09:18:16 -0800 (Fri, 28 Dec 2012) | 6 lines 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]. ------------------------------------------------------------------------ r3327 | helixhorned | 2012-12-28 09:18:12 -0800 (Fri, 28 Dec 2012) | 5 lines 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. ------------------------------------------------------------------------ r3326 | helixhorned | 2012-12-28 09:18:09 -0800 (Fri, 28 Dec 2012) | 1 line Replace initialize_engine_globals() with array initialization. ------------------------------------------------------------------------ r3325 | helixhorned | 2012-12-28 09:18:06 -0800 (Fri, 28 Dec 2012) | 1 line Lunatic translator: pack all translation units into one big blob. ------------------------------------------------------------------------ r3324 | helixhorned | 2012-12-28 09:18:02 -0800 (Fri, 28 Dec 2012) | 1 line Lunatic: sinking in code. ------------------------------------------------------------------------ r3323 | helixhorned | 2012-12-28 09:17:58 -0800 (Fri, 28 Dec 2012) | 3 lines Make get{zs,ceilz,florz}ofslope (now ...ptr) accept sectortype pointer. And rewrite the original functions as wrappers around these. ------------------------------------------------------------------------ r3322 | helixhorned | 2012-12-28 09:17:53 -0800 (Fri, 28 Dec 2012) | 1 line Clean up spawning / actor initialization code. ------------------------------------------------------------------------