Build 5495
SVN-
Fix voxels so palette colors are treated as 8-bit, not 6-bit. Overlooked in r5349.
SVN handles and Git names are merged into one person.
Fix voxels so palette colors are treated as 8-bit, not 6-bit. Overlooked in r5349.
Fix two bugs in SCRIPT_GetNumber that cause it to issue an incorrect return value.
Add a new pthtyp flag to mark textures that should not be processed by the fixtransparency() hack (which avoids the transparent color blending into a sprite when texture filtering is enabled), such as non-(T)ROR-masking floors and ceilings, white- and mask-walls, paper-skies, and rotatesprite with orientation flag 64. This commit makes sure the flag's status always fits the situation.
This fixes the remaining issue with WWII GI's LOGO.ANM: Color index #255 is used as the dominant white color (not as a transparent index) and fixtransparency() was mangling the image as a result.
Factor out common handling of the end-of-level between sectors tagged 65535 and 65534, switches tagged 65535, and nukebuttons.
This fixes the bug with user maps ending in 65534-tagged sectors, reported by FistMarine: https://forums.duke4.net/topic/8367-end-of-level-bug/ It also eliminates dead code belonging to the nukebutton.
Fix unused global variables in menus.c with DROIDMENU defined.
Fix an unused variable in menus.c with USE_OPENGL=0.
Fix orientation bit 64 when applied to a tile with fullbrights in OpenGL with r_fullbrights enabled.
This fixes (the most glaringly wrong problem) with WWII GI's LOGO.ANM in OpenGL, exposed by r5437.
More NAM/WWII GI "bluefont" xbetween fixes missed in r5452.
Fix a compiler error on introduced in r5445.
Fix typo in r5448.
Fix compiler warnings when building for 32-bit.
Miscellaneous NAM and WWII GI tweaks/fixes.
Remaining issues: - Inventory item gamefuncs still use their Duke 3D names. The buggy way custom gamefunc binds are saved and loaded needs to be addressed first.
Don't test (!usemodels || md_tilehasmodel(picnum, pal) < 0) in eligible_for_tileshades (called only from getshadefactor) because getshadefactor is only called when a model is *not* being drawn, and therefore results in incorrect shading when drawing a tile with a model defined and models enabled to the screen or as a skybox.
astub.c: Fix typos in console function definitions. DONT_BUILD.
Fix a crash in the editor when the basepalette is loaded from def instead of PALETTE.DAT, caused by trying to getclosestcol() without having initialized the colormatching code. Exposed in r5359; previously resulted only in erroneous matching to an all-#000000 palette.
Fix two unused function warnings in mdsprite.c when building with POLYMER=0.
OS X: Fix -Wdeprecated-declarations compiler warnings in the startup windows.
OS X: Fix POLYMER=0 build.
Fix warning: explicitly assigning value of variable of type 'CACHE1D_FIND_REC *' (aka '_CACHE1D_FIND_REC *') to itself [-Wself-assign]
Fix a typo in loadpalette that broke reading of the lognumalphatabs byte.
Fix error in r5346 that broke the MoreBlendTab section of PALETTE.DAT.
Fix RENDERTYPE=WIN build by changing a const char* to a char*, which had been cast to (void *) before passing to free() (which is bad practice) prior to r5352.
Build tools/OS X: Fix build by satisfying compat.c's dependence on osxbits.m.
Build tools/Windows: Fix text outout by compiling without -mwindows.
Fix a bug with the tilefromtexture { texture } subtoken, where alphacut was interpreted in an inverse fashion, generally causing hightile textures defined this way to appear completely transparent.
Correct handling of size-zero gamearrays: Prevent a crash upon loading a savegame containing them, and allow resizearray to zero.
Fix a harmless "Internal compiler error" warning when using quick structure access on userdef.
Fix GTK build.
Fix USE_OPENGL=0 build.
Mostly revert r5326, and instead restrict the starting and stopping text input to touch devices where we need the on-screen keyboard to appear. This maintains the bugfix on targets with a physical keyboard.
Fix the Custom game content directory startup window option loading the folder alphabetically previous to the one selected when the "autoload" folder is present.
Fix warning: narrowing conversion of 'img->vpx_image::d_w' and 'img->vpx_image::d_h' from 'unsigned int' to 'int32_t {aka int}' inside { } is ill-formed in C++11 [-Wnarrowing]
Re-expose kpzbufsiz and set it to zero in uninitengine, preventing potential crashes from successive re-initializations of the engine.
Revert recent icon changes.
Extend S_UpgradeFormat so that "filename.ext" first searches for "filename_ext.flac" and "filename_ext.ogg" before "filename.flac" and "filename.ogg".
This fixes DUKETEAM playing grabbag.ogg instead of grabbag_voc.ogg when Megaton paths have been detected.
Fix warning: array subscript is above array bounds [-Warray-bounds]
Fix warning: variable may be used uninitialized in this function [-Wmaybe-uninitialized]
Fix warning: type does not match original declaration [enabled by default]
Fix warning: passing argument 1 of 'allocache' from incompatible pointer type [enabled by default] and warning: pointer targets in passing argument 3 of 'allocache' differ in signedness [-Wpointer-sign]
Fix warning: passing arguments 2 through 5 of 'SCRIPT_PutDoubleString' discards 'const' qualifier from pointer target type [enabled by default]
OS X: Fix startup window banner. DONT_BUILD.
Fix a typo in r5179.
Fix typo "maxtileallocsiz" --> "maxtiltallocsiz" for MAXYDIM < 640.
Make all the hictinting_apply blocks consistent. This should fix certain tints types being applied incorrectly in Polymer and the global tints (underwater and nightvision) not being applied to tints and models with certain flags.
Fix omission of modules when parsing game-side defs.
Fix an OOB in the cheats menu when running with the v0.99 GRP.
Build tools: Fix build. DONT_BUILD.