Build 8534
SVN-
General
game.h: fix calc_smoothratio_demo() to take into account differences between timerGetClockRate() and TICRATE when calculating the refresh frequency to interpolate between
SVN handles and Git names are merged into one person.
game.h: fix calc_smoothratio_demo() to take into account differences between timerGetClockRate() and TICRATE when calculating the refresh frequency to interpolate between
Fix -Wunused-parameter warnings
Fix -Wheader-guard warning
Fix FindDistance3D calls to not z>>4 at the call site
This is handled by the function itself now. Fixes the distance issue with the ceiling fan.
Detect absence of pic_yinyang and use pic_shuriken1 for cursor instead
Fixes menu usability with game data versions before 1.2
Avoid memory leaks when playing a new music file
Fix -Wunused-parameter in my CONTROL_ClearUserInput fix
Fix crash issues when Track sprites are set up incorrectly
SW, KenBuild: Draw mouse cursor in editor's 3D mode
Will still look wrong in SW due to reversed palette ramps.
Fix a mistake in my temporary CONTROL_ClearUserInput
Fixes skipping SW's 3D Realms screen and intro logo.
Revert r8386 and reinstate the Reverse Stereo option, but only #ifdef __MSDOS__
Agreed that this feature serves no purpose on modern systems.
SW, KenBuild: Fix print error in the first line of editor log files
SW, KenBuild: Fix build of editors after AnalyzeSprites change
Fix rotatesprite widescreen pinning in 5:4
Fix the interpretation of old-format PALETTE.DAT
Backported from PCExhumed.
Fix Mapster32 undo/redo corruption issue
Revert "Windows: Remove keyboard layout switching entirely"
This change was not well thought out and breaks a number of things for users of foreign keyboards. Unfortunately, we are still at a point where removing keyboard layout switching is a QOL downgrade.
Improve diagnostic printing of slopalookup overflows
Fix regression in software rendering of slopes in r8363
Fix SDL 1.2 build
Fix RENDERTYPE=WIN build
Broken in r8319.
Fix crash when specifying an out of range value for sys_timer in the console
Manifests as a crash on startup for all users who previously had sys_timer set to 4.
This should fix rare stalls of several seconds when changing window focus on some Windows systems, related to changing the keyboard layout
Fix SW compilation under VS
Fix Mapster32 undo corruption issue
Fix cacheAllSounds() being called before .def parsing... oops!
Fix osdcmd_changelevel
ENet fix to allow running on Windows XP again... completely untested tbh
This is not the only thing that breaks compatibility with XP, but this fixes the ENet part of it.
This workaround doesn't appear to be necessary anymore
Moreover, I couldn't really find any information about the problem this was supposed to resolve when I attempted to research it. The code has already been #if 0'd out for a while.
Re-add r_usetileshades
Fix an error in the removal of r_usetileshades
Despite the default mode being 2 and the option being removed, statements reading (r_usetileshades == 1 && !(globalflags & GLOBAL_NO_GL_TILESHADES)) were changed to (!(globalflags & GLOBAL_NO_GL_TILESHADES)) instead of (false). Fortunately, this has no effect with default settings (r_usenewshading == 4).
Fix GLOBAL_NO_GL_TILESHADES since the implementation of the shader in Polymost
Patch from Fox and Nuke.YKT.
Fix the widescreen alignment of weapons when shrinking the screen with + or - (currently disabled by default)
Patch from Fox.
Fix STARTUP_WINDOW=0 on modern macOS
Fix assertions and OOB so that the player can noclip OOB
Bgetsysmemsize() 64-bit fix
Fix cheats only granting one Uzi instead of two
Fix CONTROL_ClearUserInput so menu input is reliable
Fix NUMGAMEFUNCTIONS and mouse button select menu
Fix saves
Dynamically-allocated structs strike again.
Fix an error in the the inline header version of initmultiplayers
Fix a bug with mouse cursor position in the keyboard keys menu
Fix scrollbar tile clipping
Patch from Nuke.YKT.
Fix slidebar touch control accuracy
Patch from Nuke.YKT.
Fix buffer overflow in getclosestcol_lim
Patch from Nuke.YKT.
Fix tautological comparison in savegame.cpp
Fix "MV_GetVoice(): bad handle" log spam
Fix widescreen flickering in end of level screen
Fix non-debug builds on Windows
Fix keyboard input
Fix an assertion failure in palette changing code
Fix OOB access when viewing a mirror
Fix mouse aiming
cpuid.cpp: Apply another fix for Mingw-w64 builds
Fix HAVE_FLAC=0 HAVE_VORBIS=0 builds
Fix unused global variables
Remove -Wno-deprecated-declarations
Passing this in for the entire build process is dangerous. If a deprecated declaration can't be fixed, use pragmas to silence it specifically.
Clean up the huge portability regressions caused by the introduction of ZPL and dependent features.
This massively guts zpl.h: everything we don't use. It also improves the portability of the things we do use. See zpl.h for why keeping the entire library is unacceptable. Some notes: Intel, or more specifically x86, is an architecture, not a platform. The uses of zpl_vm_alloc functions contained a regression in that unlike the X-prefixed allocation functions, no checking of the return value was performed. Moreover, the new Bgetpagesize incorrectly used the zpl_virtual_memory_page_size API, causing the value returned to be dwAllocationGranularity instead of dwPageSize on Windows! timerInit contained a compilation error on "MIPS". The introduction of sysReadCPUID() broke linking on everything but x86. Any symbol containing two successive underscores is reserved, so don't use that for include guards.