Build 5974
SVN-
General
Rename E_PostInitTables back to E_PostInit and move it back to where it belongs in engine.c (i.e. preinitengine, initengine, "postinitengine"). It should not have been changed.
SVN handles and Git names are merged into one person.
Rename E_PostInitTables back to E_PostInit and move it back to where it belongs in engine.c (i.e. preinitengine, initengine, "postinitengine"). It should not have been changed.
Fix transparent masked walls in Polymost
Remove camera distance from the calculation for how much to offset sprites to avoid z buffer fighting.
Fix linking of mdpause variable with POLYMER=0 in screens.c, exposed by Visual Studio. DONT_BUILD.
Fixes issue with picnum 0 sprites used as map geometry
support sprite blending mode and statnum in clipboard.
Add #ifdef USE_OPENGL forgotten in r5024 that causes an OOB access in scansector() and glitchy mirrors with USE_OPENGL=0.
Extend undefinetile to also remove voxels, hightile (including skyboxes) and models.
Add vox_undefine().
Amend r5910 so that the problem is mitigated even when the map load takes place with a different renderer.
Clear wsprinfo[] upon map load. This should address some remaining instances of wall-ornamented sprite z-fighting.
GL .blend support.
Consult me if you are interested in this feature. TODO: Polymer.
In 8-bit, change the precedence of .alpha and .blend.
Previously: Non-zero alpha stacked with cstat translucency in an imitation of Polymost, potentially clobbering .blend if alphatabs are used. Now: If cstat translucency is active, .alpha is ignored.
Potentially speed up drawing md3s with transparency in Polymost
Remove the Polymer aspect ratio option, as it was always broken, and I don't know what purpose it has besides configuring non-square pixel stretching, which we have a long way to go in terms of configuring anyway.
Use r_pr_customaspect from the console instead.
Some float optimizations in the engine.
block ctrl-x and ctrl-shift-x from working if you have unsaved changes
Fix ghost tsprite bug introduced in previous commit.
Fix Polymer breakage
The great cleanup continues. This one also adds a new feature, SFLAG_WAKEUPBADGUYS. When awoken (changed to an active actor), any sprite with this flag set will wake up any enemy it has line of sight with.
add home/end modifier keys to 3d mode slope keys ([ and ]), plus a third increment modifier (home and end at the same time)
on TROR point insertion, mark more points.
This fixes a bug reported by Micky C on 2016-01-11 where too few points were marked to be inserted. See AMC TC SVN r2308.
pull out some code from M32_InsertPoint() into M32_MarkPointInsertion().
SDL2 layer: in Mapster32, fix menu Ctrl-F in case NumLock is on.
engine.c: fix potential smostwall[-1] access. Found by ASan.
Correct an oversight in r3580.
Revert part of r5481. We can't rely on the sprite trackers to tell us when tsprites change.
Fix the oversight in handling tspr->extra from r5400 by setting it to zero in polymer_scansprites.
Misc Polymost crap. Improves detection of sprite/wall collisions for z-fighting avoidance
A quick hack so that Mapster can load more pre-v7 PALETTE.DAT files.
Factor out the ETC block preparation by moving the ETC function decision from Polymost_SendTexToDriver into Polymost_PickETCFunction.
Allow compressed ART tiles (r_texcompr 2) to be cached.
Tweak the "don't upload textures with dimension > xdim" GL ES rule to limit to the power of two greater than xdim instead of less than it.
Clean up and rearrange some texcache code. No functional changes.
Call texcache_calcid once per texture instead of twice. Clean it up a little while we're at it.
Add "artquality" subtoken to textures, model skins, and skyboxes, which grants the texture HICR_ARTIMMUNITY. In effect, this implies "nodownsize" and signals that texture compression would be undesirable, but okay using r_texcompr mode 2 (aggressive).