Build 5845
SVN-
Generale
Fix Polymer breakage
Nickname SVN e nomi Git sono unificati per persona.
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).
Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall.
Clean up texcache_enabled.
Fix drawing voxels with ids >= 256
Make sprite tails and label borders purple if the sprite is blocking.
Fix Mapster32 sprite selection colors when using a tiles.cfg that defines tile groups using colors from the bright half of the original 16-color palette.
In layman's terms, this fixes the effect sprites flashing black in 2d mode.
Don't squish the player in lotag 1 sectors that have a SE7.
Add one-bit alpha detection for hightile and model skins.
Add r_texcompr 2, which compresses ART in addition to hightile.
Add HICR_ARTIMMUNITY and DAMETH_ARTIMMUNITY, which currently function identically to NOTEXCOMPRESS and NODOWNSIZE combined, and are only used when:
1. Using an ART tile 2. Using a hightile defined through the tilefromtexture "texture" subtoken 3. Using a hightile that, if downsized, will be smaller than the ART tile for that tilenum (tenuous)
Move daskinloader into mdloadskin and clean up it and gloadtile_hi against one another.
Refactor all GL internal texture format decision making into uploadtexture().
This directly achieves the following: * Eliminated codedup. * Recently introduced GL ES performance downsampling now applies to model skins. * Replaces the alpha/art format distinction with {RGB/no alpha, RGBA/one-bit alpha (ART transparency), RGBA/full alpha}. * Cleanly allows multiple fallback formats for each type. * Ready for further commits.
Rename HICR_NOCOMPRESS to HICR_NODOWNSIZE, CACHEAD_NOCOMPRESS to CACHEAD_NODOWNSIZE, DAMETH_NOCOMPRESS to DAMETH_NODOWNSIZE, and HICR_NOSAVE to HICR_NOTEXCOMPRESS.
Fix Polymost issue reported at https://forums.duke4.net/topic/8470-weirdness-of-players-sprite-in-view-modef7/
Implement Mapster32's CON_FOR into EDuke32.
Fix Polymer wall updating
Cheap hack to let Mapster32 read the visibility parameter from gamestartup when parsing the CONs for sound definitions.