Build 6957
SVN-
Generale
Cheap fix for load game menu crash
Nickname SVN e nomi Git sono unificati per persona.
Cheap fix for load game menu crash
Fix -Wformat-overflow warnings
Fix warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct menusave_t'; use assignment or value-initialization instead [-Wclass-memaccess]
Fix warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
Fix variable capitalization in Dependencies.mak files
MSVC build fix
Support software renderer upscaling engine-side in sdlayer and sdlayer12 with various scaling factors (beyond just pixel doubling).
When glsurface is available, use GL to upscale the render buffer. Additionally, fix build issues with sdlayer12 introduced by GLAD changes (r6656).
polymost.cpp: fix rendering for indexed colour textures to match original behaviour when !r_usetileshades or globalflags & GLOBAL_NO_GL_TILESHADES
Additionally, fix issue in polymost_setShade() where shade calculation was happening after a check for whether or not the shade needed to be updated.
sdlayer.cpp: fix software renderer crash affecting Mapster32 due to improper handling of lockcount in videoBeginDrawing()/videoEndDrawing() when using glsurface
glsurface.h/.cpp: change how the palette is handled and fix tinting/fading
Temporary workaround for palette or GL surface issue wherein launching Mapster32 into 2d mode produces a black screen until switching to 3d mode and back
Fix crash in Mapster32 when switching from GL 3d mode to 2d mode.
Fix issue with viewing the player sprite through a security camera
Fix inclusion of sdl_inc.h in Duke3D's config.cpp
Fix error with initputs symbol when linking the Build tools in some environments
Fix building the Build tools
Fix building with winlayer
Don't allow GL modes if GL Major Version is less than 2.
Additionally, fix build issues for RENDERTYPE=WIN introduced in r6827.
astub.cpp: fix issue where globalpal was not declared if polymost.h was not included
Fix conveyor belt speed in IM, but not Duke because it breaks gameplay
Fix issues with running the game fullscreen on Windows 10 with high DPI setups
Fix SFLAG_WAKEUPBADGUYS
engine.cpp: fix issue introduced in r6905 where voxels with fractional scaling would not be handled correctly in Polymost
tiles.cpp: fix texcache.cpp:CLEAR_GL_ERRORS() hang on some drivers when trying to create GL textures for tiles when we have no GL context.
This could occur when returning to 2D mode from 3D mode in Mapster32 as videoSet2DMode() does not affect the result of videoGetRenderMode() despite destroying the GL context.
engine.cpp: fix issue with voxmodel_t voxels not having their scale set properly due to defs being processed before PolymostProcessVoxels()
engine.cpp: fix classicDrawVoxel() positioning bugs by:
+avoid adding the pivot's z offset again after it was already added in classicDrawSprite() +offset the voxel object by half of the voxel object's z size
Fix two regressions completely breaking the correctness of the copy command, introduced in r6343.
Fix the vertical position of the level stats when using the original mini-HUD.
Patch from Fox.
make setting a sector's .wallptr call setfirstwall() instead of setting it directly and corrupting the map