Build 5694
SVN-
Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall.
SVN handles and Git names are merged into one person.
Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall.
A potential fix for the "loading sounds and music from zip files" bug.
Fix type problem in ProcessRGB_ETC2.
Fix Android warnings missed due to Android.mk misconfiguration.
Fix warnings pointed out by Xcode.
Revert part of r5655 that wiped out my cast-qual fixes from r5551.
Revert r5601 in its entirety. This fixes MIDI playback on Windows.
Fix mistakes in r5642.
Fix on-screen keyboard, broken in r5625.
Fix launching on iOS 6.
Fix iOS hardware deployment.
Fix potential build failure when static inline G_CheckForSpace{Ceiling,Floor} are declared without namesdyn.h first being included.
Exposed by lunatic_game.c when LUNATIC=1.
Fix unused-parameter warnings.
Fix discarded-qualifiers warnings.
Fix cast-qual warnings having to do with L_RunString.
Fix miscellaneous GL ES warnings
fix warnings when compiling on Linux
fix errors when compiling on Linux
Fix the return command within events, broken since r5097.
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.