Build 7318
SVN-
General
Revert "SDL 2.0.9"
SVN handles and Git names are merged into one person.
Revert "SDL 2.0.9"
Fix issue with definegamefuncname and undefinegamefunc
Fix missing/invalid palswaps and shades in automap with Polymost
Patch from Nuke.YKT.
Fix an infinite loop in S_StopEnvSound() that could occur if the audio thread happened to finish playing a voice in between checking if g_sounds[].voices[].id > FX_Ok and calling FX_StopSound(), exacerbated by improper std::atomic usage
Fix buffer overrun
Remove 'none' as an option for the frame limiter in the menu and fix a bug with the slider for the offset
MSVC build fix
Fix NETCODE_DISABLED builds. We should probably rename Net_GetPackets() to something else, because it does other required things.
Fix loading screen tile
Fix issue where the option to enable or disable Polymer wasn't being saved properly
Fix issue where the player's pistol isn't removed when they spawn on HURTRAIL/FLOORSLIME/FLOORPLASMA
macOS build fix. DONT_BUILD.
Revert "engine.cpp/.h: clean up & fix lintersect(). Additionally, add support for finding intersections of collinear line segments."
This reverts r6886.
Fix issue with editor not allowing wall and floor aligned sprites to be resized in 2d mode without textured view mode enabled
This should fix the too many sprites spawned issue in single player
Fix net.cpp line endings
Fix function that some sadist formatted with 3 spaces
This fixes S_CheckSoundPlaying() and makes CON_IFSOUND work correctly in scripts that run during menus. These changes together fix the exchange between Duke and Lani at the end of episode 3 of Duke3D.
Fix CON commands leaving useless extra values in the bytecode. They were only valid outside of executable blocks so it was never noticed.
Fix CON compiler line number accounting problem introduced with the optimization that transforms CON_SETVARVAR -> CON_SETVAR if the second parameter is a constant
Change A_AddToDeleteQueue() to call A_DeleteSprite() on sprites it removes from the queue directly, as sprites with statnums other than STAT_ACTOR and STAT_MISC are not deleted automatically when their xrepeat is 0. This fixes using CON_INSERTSPRITEQ with sprites of statnums other than STAT_ACTOR and STAT_MISC.
- Packet code implementation (merge from private c/s repo), world updates are now synced through snapshots. See tag SVN_SyncPoint_Dec2018 on master of the other repo.
- "Scratch pad" sprites implementation, to avoid desyncs in sprite indexes, clients will insert temporary sprites which are cleared out when they receive the next snapshot from the server. - Patches from Striker which fix player stomping frag counts, the accept button when hosting a game through the menu, and a "noffire" command line parameter. - Patches from NY00123: t_data sync optimizations to improve some jittery behavior on the client side.
macOS build fix
Fix oversight with wall texture rotation on tile 0
Fix issue with a couple symbols from cmdline.h sometimes picking up different linkage due to accidental double definition in game.h
Further clean up C_SetScriptSize(). This also fixes a bug in the function where when expanding the buffer size, most of the extra space was left uninitialized due to bad parameters passed to memset().
Fix Gv_GetArrayOrStruct() error message
Fix whitespace in gameres.rc
Fix Polymer checkbox not showing up in the startup window in Visual Studio builds
Rename Gv_GetSpecialVar() to Gv_GetArrayOrStruct() and fix what would be a bug in Gv_GetVarDataPtr() if we were using it for something more than the single thing we use it for now
This does nothing but fix indentation of a single block of code
This is supposed to fix some errors with HIGH_PRECISION_SPRITE reported by a static analyzer, wherein 32-bit values were shifted and truncated as 32-bit before being widened to a 64-bit type, which didn't seem like the intended behavior. This is the commit to look at if anything is suddenly fucked up in the classic software renderer.
Fix a couple of issues that cropped up after some of the previous OSD refactoring commits
OSD warning fix
Fix a null pointer dereference in G_GameExit() so we don't crash while we're crashing
Fix a big fail in my implementation of CON_DIVR and CON_DIVRU.
Fix usages of tab characters that slipped into menus.h at some point, and fix declaration of function Menu_Change() to match its definition
Fix screwed up spacing in a few audiolib files. No functional changes.
Fix issue with Bgetsysmemsize() on some platforms after the changeover to ::min and ::max.
Fix HIGH_PRECISION_SPRITE, broken when switching to std::min and std::max.
Fix derpy menu bug
engine.cpp: fix crash when calling `setrendermode 3` where PolymostProcessVoxels would be called before Polymost is initialized.
PolymostProcessVoxels would call videoNextPage during processing which would attempt to render the OSD and lead to a segfault due to Polymost not being properly initialized.
Increase size of text buffer used for editor 3d mode info display--it was possible to overflow it
Prevent g_sounds[] buffer overflow when attempting to define a sound with an index higher than MAXSOUNDS-1. This reduces the number of sound definitions available by 1 as the last slot is now reserved for the error condition.
Fix usage of pointer to stack allocated array outside of the scope the array was declared in
Fix huge bug in CON_COPY
Clarify assignment in ternary condition as not a bug