pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

eduke32: update eduke32 to eduke32-5948



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Thu Dec 22 19:29:27 2016 +0200
Changeset:	18519775df2df9a74a562c38bdc253d7fb02bd6b

Modified Files:
	eduke32/Makefile
	eduke32/distinfo
Added Files:
	eduke32/patches/patch-source_m32exec.c

Log Message:
eduke32: update eduke32 to eduke32-5948

SVN commits:

5948 	17d 18h 	terminx 	/ 	Fix transparent masked walls in Polymost
5947 	17d 18h 	terminx 	/ 	Cvar fix
5946 	21d 12h 	terminx 	/ 	Change OSD_CvarModified() to rely on a CVAR_MODIFIED flag set in osdcmd_cvar_set(), instead of merely comparing the current value to the default value. This leaves the storing of the default value (dval in osdcvar_t) in place for use in future features that haven't been programmed yet.
5945 	21d 13h 	terminx 	/ 	Remove camera distance from the calculation for how much to offset sprites to avoid z buffer fighting.
5944 	23d 09h 	hendricks266 	/ 	Fix linking of mdpause variable with POLYMER=0 in screens.c, exposed by Visual Studio. DONT_BUILD.
5943 	24d 12h 	hendricks266 	/ 	Makefile: Fix STARTUP_WINDOW=0 on Windows so that the resource objects are built, but the editor's startup window is not. DONT_BUILD.
5942 	24d 12h 	hendricks266 	/ 	Makefile: Extend STARTUP_WINDOW to GTK. DONT_BUILD.
5941 	24d 12h 	hendricks266 	/ 	Makefile: Fold OSX_STARTUPWINDOW into STARTUP_WINDOW. DONT_BUILD.
5940 	24d 12h 	hendricks266 	/ 	Avoid unused variable warning with the startup window disabled. DONT_BUILD.
5939 	34d 11h 	terminx 	/ 	Fixes build error with winlayer. DONT_BUILD.
5938 	36d 19h 	terminx 	/ 	Support vsync in classic mode (SDL 2.x only), and properly handle failure to enable "adaptive" vsync on systems that don't support it.
5937 	36d 19h 	terminx 	/ 	Fixes issue where freezing GREENSLIME repeatedly would increase the player's kill counter by one each time
5936 	36d 19h 	terminx 	/ 	Default internal frame wait counter to 17ms to match the default r_maxfps value of 60. Fixes issue where the framerate counter wasn't enforced after setting it to 60 and restarting the game.
5935 	36d 19h 	terminx 	/ 	Fix menu option for pixel doubling
5934 	36d 19h 	terminx 	/ 	Fixes issue where sounds weren't pausing when pausing the game
5933 	37d 17h 	terminx 	/ 	Fixes issue with picnum 0 sprites used as map geometry
5932 	37d 17h 	terminx 	/ 	Fixes an issue with enemies waking up when using security cameras
5931 	42d 18h 	terminx 	/ 	Add libxmp-lite support to Makefile.msvc.
5930 	42d 18h 	terminx 	/ 	Fix a couple of issues with savemapstate/loadmapstate.
5929 	42d 18h 	terminx 	/ 	Change default anisotropic filtering setting to the max for the user's system. DONT_BUILD.
5928 	42d 18h 	terminx 	/ 	Support building without a startup window through the Makefile. DONT_BUILD.
5927 	44d 14h 	hendricks266 	/ 	Add support for MOD, XM, IT, and S3M tracker music through libxmp-lite.

Building with support must be manually enabled by invoking make with HAVE_XMP=1 on platforms other than Windows, because libxmp-lite is not common in package managers. This setup will be improved in the future.
5926 	45d 15h 	terminx 	/ 	Update synthesis.sh with local changes from server. DONT_BUILD.
5925 	51d 15h 	terminx 	/ 	Mapster32: support sprite blending mode and statnum in clipboard.
5924 	51d 15h 	terminx 	/ 	Remove Menu_MouseWithinBounds() in favor of negating the result of Menu_MouseOutsideBounds().
5923 	51d 15h 	terminx 	/ 	Rename menu functions to what I consider to be more sane names. No other changes.
5922 	51d 15h 	terminx 	/ 	Add menu option to control r_maxfps, default r_maxfps to 60, add cvar for pixel doubling (r_pixeldoubling).
5921 	54d 00h 	hendricks266 	/ 	sdlayer: Remove disabling certain mouse features under debug builds. It makes mouse aiming unusable.

If you need to release the mouse for some reason when you can't pull down the console (such as hitting a breakpoint), execute "grabmouse_low(0)" from your debugger. Alt+Tab is your friend.

DONT_BUILD.
5920 	54d 00h 	hendricks266 	/ 	Makefile: Remove -fno-pic from everywhere. This should fix building on Ubuntu 16.10 and any other platform that has PIE enabled.
5919 	54d 00h 	hendricks266 	/ 	Makefile: Revert r5864 and move some code introduced in r5762 to a later Mac-only block so that architecture detection is not broken on Linux.
5918 	54d 00h 	hendricks266 	/ 	sdlayer: Work around warning: signed and unsigned type in conditional expression [-Wsign-compare] indirectly caused by the SDL 2.0.5 headers making all preprocessor macro literals unsigned.
5917 	54d 00h 	hendricks266 	/ 	Engine: Add #ifdef USE_OPENGL forgotten in r5024 that causes an OOB access in scansector() and glitchy mirrors with USE_OPENGL=0.
5916 	58d 11h 	hendricks266 	/ 	Amend r5911 to use undefinetile instead of only zeroing out the MIRROR tile's dimensions.
5915 	58d 11h 	hendricks266 	/ 	Extend undefinetile to also remove voxels, hightile (including skyboxes) and models.
5914 	58d 11h 	hendricks266 	/ 	Engine: Add vox_undefine().
5913 	58d 11h 	hendricks266 	/ 	Amend r5910 so that the problem is mitigated even when the map load takes place with a different renderer.
5912 	58d 11h 	hendricks266 	/ 	Revert a formatting change from r5725.
5911 	58d 19h 	hendricks266 	/ 	Duke: Move the nulling of the MIRROR tile to after defs are parsed so that tilefromtexture does not interfere with mirror function.
5910 	58d 19h 	hendricks266 	/ 	Polymost: Clear wsprinfo[] upon map load. This should address some remaining instances of wall-ornamented sprite z-fighting.
5909 	59d 21h 	hendricks266 	/ 	To avoid potential compiler bugs when inlining inline assembly, remove the asm variants of msqrtasm and always use the C version. Compilers generate equivalent or better assembly, and the function is used exactly once, in a routine called during startup.
5908 	59d 21h 	hendricks266 	/ 	C-CON and M32script: Only accept hex literals beginning with '0' and not any other digit.
5907 	59d 21h 	hendricks266 	/ 	Defs: Fix the parser so tokens with 'x' or 'X' as a second character are only treated as hex constants when the first character is '0'. Introduced in r5822.
5906 	59d 21h 	hendricks266 	/ 	Defs: Fix the off-by-one error when printing line numbers.
5905 	63d 10h 	hendricks266 	/ 	Windows: SDL 2.0.5
5904 	63d 10h 	hendricks266 	/ 	sdlayer: Don't set the window icon from code if we are linked with SDL >= 2.0.5 on Windows, since it will now automatically use the first icon in the exe.
5903 	63d 10h 	hendricks266 	/ 	sdlayer: Add EDUKE32_SDL_LINKED_PREREQ macro.
5902 	63d 10h 	hendricks266 	/ 	sdlayer: Disable Windows thread naming because it interferes with debugging.
5901 	63d 10h 	hendricks266 	/ 	Implement "divscale" and "scalevar" (scale()) in C-CON and "scalevar" in M32script.
5900 	63d 10h 	hendricks266 	/ 	Duke: Adjust alphatabs checking to activate features when numalphatabs >= 15 instead of 16 so that my precise mode can be used.
5899 	69d 09h 	hendricks266 	/ 	AudioLib: Fix improper matching of loop tags with initial substrings of them, and add proper support for LOOP as a synonym of LOOP_START.
5898 	69d 09h 	hendricks266 	/ 	Bump PSKYOFF_MAX from 4 to 8.
5897 	69d 09h 	hendricks266 	/ 	Defs: Add "yoffset" subtoken to "multipsky".
5896 	69d 09h 	hendricks266 	/ 	Re-enable the use of psky_t's yoffset.
5895 	69d 09h 	hendricks266 	/ 	C-CON: Fix addlogvar command, broken in r5835.
5894 	69d 09h 	hendricks266 	/ 	C-CON: Allow gamestartup to read in one additional parameter (MAXFLAMETHROWERAMMO). Do nothing with it yet.
5893 	69d 09h 	hendricks266 	/ 	C-CON: Implement "ifplaybackon" conditional, used by World Tour to determine if the replay feature is enabled. In our case, it is always false.
5892 	69d 09h 	hendricks266 	/ 	Replace all "g_scriptVersion == 14" with "g_scriptVersion >= 14".
5891 	69d 09h 	hendricks266 	/ 	Apply the same bugfix as r4947 to XA sounds so that they only loop when intended.
5890 	69d 09h 	hendricks266 	/ 	Add a new aligned mode to alphatabs by defining numalphatabs to be a power of two minus one.

This provides fractionally better correspondence between 0-255 alpha values and blend table IDs.
5889 	69d 09h 	hendricks266 	/ 	Rigor-up the handling of 0% and 100% alpha with alphatabs in 8-bit.
5888 	74d 09h 	hendricks266 	/ 	GL .blend support.

Consult me if you are interested in this feature.

TODO: Polymer.
5887 	74d 09h 	hendricks266 	/ 	In 8-bit, change the precedence of .alpha and .blend.
Previously: Non-zero alpha stacked with cstat translucency in an imitation of Polymost, potentially clobbering .blend if alphatabs are used.
Now: If cstat translucency is active, .alpha is ignored.
5886 	74d 09h 	hendricks266 	/ 	Cosmetic changes to some blend/alpha related code.
5885 	74d 16h 	terminx 	/ 	Minor changes to gamevar error handling
5884 	74d 16h 	terminx 	/ 	Exterminate the smurfs! This fixes the problem where everything in the game was drastically hue shifted on certain hardware configurations, particularly the Raspberry Pi.
5883 	74d 16h 	terminx 	/ 	Misc cleanup. Removed ability to use .CON files found in the .GRP when the .CON files found in the directory can't be compiled.
5882 	74d 16h 	terminx 	/ 	Fix MSVC warnings
5881 	74d 16h 	terminx 	/ 	Potentially speed up drawing md3s with transparency in Polymost
5880 	80d 14h 	hendricks266 	/ 	Duke: Don't unpause sounds when exiting the menu back to a Game Paused state.
5879 	80d 14h 	hendricks266 	/ 	Menus: Remove the Polymer aspect ratio option, as it was always broken, and I don't know what purpose it has besides configuring non-square pixel stretching, which we have a long way to go in terms of configuring anyway.

Use r_pr_customaspect from the console instead.
5878 	80d 14h 	hendricks266 	/ 	Menus: Fix the Widescreen and Texture Mode video settings to use my menu system properly.
5877 	80d 14h 	hendricks266 	/ 	Some float optimizations in the engine.
5876 	80d 14h 	hendricks266 	/ 	Ensure the cached float cast variables introduced in r4656 are updated any time the integer versions are.

This fixes the infinite loop when viewing an HUD model at a point when displayrooms is not running, such as the main menu upon initial game load.
5875 	95d 13h 	terminx 	/ 	Fix detection of menu sounds in EVENT_SOUND
5874 	95d 13h 	terminx 	/ 	Change default unfiltered texture mode to 0 (no mipmaps)
5873 	95d 21h 	hendricks266 	/ 	Fix clang Windows build. DONT_BUILD.
5872 	95d 21h 	hendricks266 	/ 	Fix mistake in r5862. DONT_BUILD.
5871 	96d 19h 	hendricks266 	/ 	Fix erroneous display of MESSAGES: ON when it should be OFF.
5870 	96d 19h 	hendricks266 	/ 	Fix TEST_SYNC_KEY macro to always return 1 or 0.
5869 	96d 19h 	hendricks266 	/ 	Makefile: Allow an invocation like `make CC=clang-3.8` to work properly.
5868 	96d 19h 	hendricks266 	/ 	Fix undefined behavior: null pointer passed as argument which is declared to never be null
5867 	96d 19h 	hendricks266 	/ 	Loop optimizations in screencapture
5866 	96d 19h 	hendricks266 	/ 	Address warning: variable might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
5865 	96d 19h 	hendricks266 	/ 	Fix -Wmisleading-indentation warnings in rawinput.c.
5864 	96d 19h 	hendricks266 	/ 	Makefile: Only apply $(ARCH) processing code on Macs.
5863 	96d 19h 	hendricks266 	/ 	Fix warning: suggest parentheses around '&&' within '||' [-Wparentheses]
5862 	96d 19h 	hendricks266 	/ 	Fix USE_OPENGL=0 build.
5861 	96d 19h 	hendricks266 	/ 	Fix pausing MIDI music on Windows, regressed in r5817.
5860 	103d 11h 	terminx 	/ 	Support saving specified CON arrays in map states
5859 	103d 11h 	terminx 	/ 	Mapster32: block ctrl-x and ctrl-shift-x from working if you have unsaved changes
5858 	104d 05h 	hendricks266 	/ 	Fix ghost tsprite bug introduced in previous commit.
5857 	104d 13h 	hendricks266 	/ 	Finish what r5484 started but got reverted in r5723. Cstat 1024 now works properly in Polymost without causing any side effects in Classic. It remains unimplemented in Polymer.
5856 	104d 13h 	hendricks266 	/ 	Reinstitute the cosmetic cleanups that should have been a separate commit from r5484 and were reverted in r5723.
5855 	104d 13h 	hendricks266 	/ 	Fix MIDI playback on Windows, broken in r5817.

The main fix here is GET_NEXT_EVENT.
5854 	107d 12h 	terminx 	/ 	Fix autoaim. Oops.
5853 	107d 12h 	terminx 	/ 	Cleanups
5852 	107d 14h 	hendricks266 	/ 	Fix warning: signed and unsigned type in conditional expression [-Wsign-compare]
5851 	107d 14h 	hendricks266 	/ 	Fix a bug in r5826 regarding display of the WWII GI rocket launcher.
5850 	107d 14h 	hendricks266 	/ 	Add bit 1 to action flags: use the viewpoint's position relative to the actor when calculating which rotation to display, instead of the viewpoint's angle, for viewtypes 2/3/4/8. 5/7 already do this.
5849 	107d 14h 	hendricks266 	/ 	CON: Add an optional sixth parameter, a flags bitfield, to action definitions. Bump BYTEVERSION.
5848 	107d 14h 	hendricks266 	/ 	Enumify stuff having to do with action parameters.
5847 	107d 14h 	hendricks266 	/ 	Windows: Update libpng to 1.6.25, built with GCC 6.2.

Fixes warning: type 'struct _SETJMP_FLOAT128' violates one definition rule [-Wodr]
5846 	109d 12h 	terminx 	/ 	I need to quit trying to be clever
5845 	111d 15h 	terminx 	/ 	Fix Polymer breakage
5844 	114d 21h 	terminx 	/ 	Fix builds on broken compilers that don't properly support using "z" in the length field of a printf format placeholder.
5843 	115d 19h 	hendricks266 	/ 	Satisfy warning: this 'if' clause does not guard... [-Wmisleading-indentation]

DONT_BUILD.
5842 	115d 19h 	hendricks266 	/ 	Fix warning: logical 'and' of equal expressions [-Wlogical-op]

DONT_BUILD.
5841 	115d 19h 	hendricks266 	/ 	Fix warning: left shift of negative value [-Wshift-negative-value]

DONT_BUILD.
5840 	115d 19h 	hendricks266 	/ 	etcpak: Fix simple_array operator[] parameter type.

DONT_BUILD.
5839 	117d 15h 	terminx 	/ 	Fix a memory leak in CON_RESIZEARRAY. This commit also includes an inconsequential dozen or so lines of formatting changes I had done when I stumbled across the bug.
5838 	117d 15h 	terminx 	/ 	Add "string" alias for "definequote" and "print" alias for "quote".
5837 	117d 15h 	terminx 	/ 	Fix a couple of gcc 6.x warnings.
5836 	117d 15h 	terminx 	/ 	Fix a software mode crash bug involving bad animation flags set on tiles
5835 	117d 15h 	terminx 	/ 	More readability cleanup. DONT_BUILD.
5834 	117d 15h 	terminx 	/ 	This probably adds support for saving game arrays into map states. Probably.
5833 	117d 15h 	terminx 	/ 	More cleanup. DONT_BUILD.
5832 	117d 15h 	terminx 	/ 	Remove some unused gamevars pertaining to the original multiplayer code. DONT_BUILD.
5831 	117d 15h 	terminx 	/ 	Fix a gcc 6.x warning
5830 	117d 15h 	terminx 	/ 	More cleanup. DONT_BUILD.
5829 	117d 15h 	terminx 	/ 	Use size_t or ssize_t in for loops where possible
5828 	117d 15h 	terminx 	/ 	Further cleanup. DONT_BUILD.
5827 	117d 15h 	terminx 	/ 	Continued cleanup. DONT_BUILD.
5826 	117d 15h 	terminx 	/ 	The great cleanup continues. This one also adds a new feature, SFLAG_WAKEUPBADGUYS. When awoken (changed to an active actor), any sprite with this flag set will wake up any enemy it has line of sight with.
5825 	117d 15h 	terminx 	/ 	Massive readability cleanup of game code part 1. DONT_BUILD.
5824 	117d 15h 	terminx 	/ 	Android build fix. DONT_BUILD.
5823 	117d 15h 	terminx 	/ 	Mapster32: add home/end modifier keys to 3d mode slope keys ([ and ]), plus a third increment modifier (home and end at the same time)
5822 	117d 15h 	terminx 	/ 	Support hex constants in scriptfile_getsymbolvalue()
5821 	117d 15h 	terminx 	/ 	You're just going to have to trust me that this is 10000 lines worth of formatting and variable name cleanup, and not 10000 lines of functional changes.
5820 	117d 15h 	terminx 	/ 	Update _clang-format file. DONT_BUILD.
5819 	117d 15h 	terminx 	/ 	ldist/dist tweak
5818 	117d 15h 	terminx 	/ 	Fix EVENT_DISPLAYROOMS and EVENT_DISPLAYROOMSCAMERA RETURN values
5817 	117d 15h 	terminx 	/ 	Windows MIDI cleanup. Removal of some remaining unused functionality lingering from the DOS days and some formatting changes that happened along the way. If anything breaks with music on Windows, this is probably the commit to look at.
5816 	117d 15h 	terminx 	/ 	Windows MIDI support: remove a few unused structure members and the code that relied on them
5815 	117d 15h 	terminx 	/ 	basic cleanup and formatting
5814 	117d 15h 	terminx 	/ 	audiolib:

consolidate all multivoc invalid file errors into MV_InvalidFile
renamed FX_PlayLooped to FX_Play and removed original FX_Play
removed device type parameter from FX_Init
moved several FX_ multivoc wrapper functions to the header and made them FORCE_INLINE
5813 	117d 15h 	terminx 	/ 	audiolib: initialization is better than assignment
5812 	117d 15h 	terminx 	/ 	Sound cleanup: remove some unused functions
5811 	171d 02h 	helixhorned 	/ 	Mapster32: on TROR point insertion, mark more points.

This fixes a bug reported by Micky C on 2016-01-11 where too
few points were marked to be inserted. See AMC TC SVN r2308.
5810 	171d 02h 	helixhorned 	/ 	Mapster32: pull out some code from M32_InsertPoint() into M32_MarkPointInsertion().
5809 	171d 02h 	helixhorned 	/ 	Lunatic: fix map-text loading.

The file descriptor was closed from Lua code, causing the
subsequent kfilelength() to fail and attempt an allocation
of (size_t)-1 bytes.
5808 	171d 02h 	helixhorned 	/ 	SDL2 layer: in Mapster32, fix menu Ctrl-F in case NumLock is on.
5807 	171d 02h 	helixhorned 	/ 	engine.c: fix potential smostwall[-1] access. Found by ASan.
5806 	171d 02h 	helixhorned 	/ 	Fix non-HAVE_CLIPSHAPE_FEATURE build.

Used for example with DEBUGGINGAIDS=2, i.e. sanitizers enabled.
5805 	184d 11h 	Plagman 	/ 	nice nice good stuff
5804 	184d 12h 	terminx 	/ 	Build fix
5803 	184d 16h 	terminx 	/ 	"return" is not a function.
5802 	184d 16h 	terminx 	/ 	Usual cleanup type stuff involving vectors and variable scopes.
5801 	184d 16h 	terminx 	/ 	Separate art tile related functions out from engine.c and into tiles.c
5800 	184d 16h 	terminx 	/ 	Vectorize a few more things.
5799 	184d 16h 	terminx 	/ 	FORCE_INLINE a couple of Polymost support functions.
5798 	184d 16h 	terminx 	/ 	Miscellaneous tomfoolery of little consequence.
5797 	184d 16h 	terminx 	/ 	Fix MSVC build
5796 	184d 16h 	terminx 	/ 	tsectortype -> usectortype
twalltype -> uwalltype
tspritetype -> uspritetype

No other changes.
5795 	184d 16h 	terminx 	/ 	More changes similar to the previous commit
5794 	184d 16h 	terminx 	/ 	Change a bunch of engine functions that access sprites, walls, and sectors in a read-only fashion to use the untracked versions of those structs.
5793 	184d 16h 	terminx 	/ 	Clipping function tweaks. Fixes building without HAVE_CLIPSHAPE_FEATURE.
5792 	184d 16h 	terminx 	/ 	Relocate maphack related code into mhk.c.

This commit also relocates clipping related code into clip.c and makes a few other minor changes, because I fucked up and merged the commits together. God damn it.
5791 	184d 16h 	terminx 	/ 	Separate screen capture code from engine.c into screenshot.c
5790 	184d 16h 	terminx 	/ 	Split 2d mode editor stuff that remained in engine.c into 2d.c.
5789 	184d 16h 	terminx 	/ 	Move palette related functionality from engine.c to palette.c/h.
5788 	184d 16h 	terminx 	/ 	Move hash table stuff out of engine.c and into hash.c/h.
5787 	184d 16h 	terminx 	/ 	Performance fix for Polymost wall sprite z-fighting avoidance
5786 	184d 16h 	terminx 	/ 	Minor CON optimization bs.
5785 	184d 16h 	terminx 	/ 	This is stupid as fuck, but I swear I profiled it and it was faster this way. Looked like a cache miss on the first access of the pointers.
5784 	184d 16h 	terminx 	/ 	Pragma tweaks
5783 	184d 16h 	terminx 	/ 	Allow non-player hitscan projectiles to spawn sprites when impacting walls or sectors, and allow them to break sector textures (they could already break wall textures)
5782 	184d 16h 	terminx 	/ 	Allow SFLAG_NOCLIP to apply to projectile movement
5781 	190d 09h 	hendricks266 	/ 	Remove x86 asm pragmas for readpixel and drawpixel and replace them with their C versions.

This fixes a crash in the editor's 2D mode, reported by Paul B.
5780 	190d 09h 	hendricks266 	/ 	Replace uses of the HAVE_DS and HAVE_SDL preprocessor macros with MIXERTYPEWIN and MIXERTYPESDL.
5779 	190d 09h 	hendricks266 	/ 	Delete all SDL_mixer Windows libs from our repo since they're not part of our automated build process, and are not recommended.
5778 	190d 09h 	hendricks266 	/ 	Makefile: Revamp setup of all things SDL.

Highlights:
*Building with msys2 can now take advantage of sdl-config and sdl2-config if present.
*Add a header check to error out if SDL_mixer's major version does not match SDL.
*Building with frameworks on OS X works again.

Notes:
*Those cross compiling, particularly targeting Windows, may need to invoke make with SDLCONFIG='' to avoid bringing in libs and headers from the host.
5777 	190d 09h 	hendricks266 	/ 	Makefile: Add NULLSTREAM to factor out the NUL part of DONT_PRINT.
5776 	190d 09h 	hendricks266 	/ 	Makefile: Add a special set of default optimization options when building for the Haswell-specific x86_64h architecture designation.
5775 	194d 22h 	hendricks266 	/ 	Polymer: Correct an oversight in r3580.
5774 	194d 22h 	hendricks266 	/ 	Polymer: Revert part of r5481. We can't rely on the sprite trackers to tell us when tsprites change.
5773 	194d 22h 	hendricks266 	/ 	Duke3D: Restore some accidentally-working cases of SEs 5, 6, 14, and 30 broken in r3161.
5772 	198d 18h 	hendricks266 	/ 	BSD: Fix build on OpenBSD. DONT_BUILD.
5771 	200d 12h 	hendricks266 	/ 	Revert r5658. This fixes the disappearing chaingun problem.
5770 	200d 12h 	hendricks266 	/ 	GL: In uploadtexture, don't assume that a non-masking texture can safely be sent to the driver without the alpha channel.
5769 	200d 12h 	hendricks266 	/ 	Polymer: Fix the oversight in handling tspr->extra from r5400 by setting it to zero in polymer_scansprites.
5768 	200d 12h 	hendricks266 	/ 	Remove trailing whitespace from anything we don't need to rebase from an upstream.
5767 	200d 12h 	hendricks266 	/ 	Add some preprocessor checks on the output format to the asm.
5766 	200d 12h 	hendricks266 	/ 	Makefile: Switch the detection order of OPTOPT flags so that i386 is checked after x86_64. This ensures full compatibility for fat OS X binaries built using ARCH="-arch i386 -arch x86_64".
5765 	202d 12h 	hendricks266 	/ 	Makefile: Create GTK *_banner.c files in obj/ subfolders instead of rsrc/ so that they don't need separate cleanup rules.
5764 	202d 12h 	hendricks266 	/ 	Makefile: Make Objective-C code build as Objective-C++ when we build C code as C++.
5763 	202d 12h 	hendricks266 	/ 	Makefile: Add extra optimization defaults for OS X builds since all Intel Macs are guaranteed certain features due to the time of their debut.
5762 	202d 12h 	hendricks266 	/ 	Makefile: Clean up handling of architectures.
5761 	206d 19h 	hendricks266 	/ 	Remove unnecessary asm unprotection of ylookup[].
5760 	206d 19h 	hendricks266 	/ 	Clean up self-modifying assembly unprotection and add PROT_EXEC to mprotect() calls.

This fixes NOASM=0 under OS X.
5759 	206d 19h 	hendricks266 	/ 	sdlayer: Clean up creation of SDL_Renderer and provide information about the process to the log.
5758 	206d 19h 	hendricks266 	/ 	Clean up fallback video mode attempt code in order to fix at least three bugs.
5757 	206d 19h 	hendricks266 	/ 	A small patch from rhoenie to make our source compatible with the Intel C Compiler.

Our makefile would need more setup and I currently don't have any means of testing.
5756 	213d 12h 	hendricks266 	/ 	Update ignore rules.
5755 	213d 12h 	hendricks266 	/ 	Lunatic: Fix build. BUILD_LUNATIC.
5754 	213d 12h 	hendricks266 	/ 	Makefile: Convert object lists to an escaped multi-line format for better diffing.
5753 	213d 12h 	hendricks266 	/ 	Makefile: Add some missing dependencies on the folders in which objects are created.
5752 	213d 12h 	hendricks266 	/ 	Makefile: Add L_CXXONLYFLAGS, and use it to pass "-static-libstdc++" on Windows.
5751 	213d 12h 	hendricks266 	/ 	Makefile: Remove STATICSTDCPP variable.
5750 	213d 12h 	hendricks266 	/ 	Makefile: Rename "CPPONLYFLAGS" variable to "CXXONLYFLAGS", since "CPPFLAGS" traditionaly refers to the C preprocessor, not C++.
5749 	213d 12h 	hendricks266 	/ 	Makefile: Output the postprocessed Lunatic symbol lists to $(DUKE3D_OBJ) so they don't need special cleanup and ignore rules. Also fix building the Lunatic-enabled editor on OS X.
5748 	213d 12h 	hendricks266 	/ 	Makefile: Output objects to subfolders of one unified "obj" folder and simplify clean rules accordingly.
5747 	213d 12h 	hendricks266 	/ 	Makefile: Add mappings from a component's root prefix to its ideal folder name.
5746 	213d 12h 	hendricks266 	/ 	Makefile: Introduce *_PROPER name variables for output components and use them where currently implemented.
5745 	213d 12h 	hendricks266 	/ 	Makefile: Rename a large number of variables in the component definitions in order to make things consistent (and factorable).
5744 	213d 12h 	hendricks266 	/ 	Makefile: Fix erroneous tab characters.
5743 	213d 12h 	hendricks266 	/ 	Makefile: Shorten host platform detection code and improve it on Windows to try using $(OS) before invoking uname, and to catch "MSYS" in addition to "MINGW" in uname's output.
5742 	213d 12h 	hendricks266 	/ 	Makefile: Remove *_TARGET variables for final outputs, which could have been used to disable compilation of specific ones.

This was only ever used to not compile the editor for Wii, but we now support that. Up to now these only served to clutter the Makefile.
5741 	213d 12h 	hendricks266 	/ 	KenBuild: Address "warning: shifting a negative signed value is undefined [-Wshift-negative-value]".
5740 	213d 12h 	hendricks266 	/ 	KenBuild: Fix OS X build.
5739 	213d 12h 	hendricks266 	/ 	KenBuild: Fix symbol issues.
5738 	213d 12h 	hendricks266 	/ 	KenBuild, SW: rotatepoint
5737 	213d 12h 	hendricks266 	/ 	KenBuild, SW: Fix "psky" typo.
5736 	213d 12h 	hendricks266 	/ 	KenBuild: tspritetype
5735 	213d 12h 	hendricks266 	/ 	KenBuild: Fix mul3 and sqr pragmas.
5734 	213d 12h 	hendricks266 	/ 	KenBuild, SW: Fix Win32 startup window warnings.
5733 	213d 12h 	hendricks266 	/ 	Use "Backslash" instead of "\" for keybinds because its nature as an escape character causes issues. Fixes ticket #16.
5732 	213d 12h 	hendricks266 	/ 	libdivide.h: Silence "warning: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'long long' in initializer list in C++11 [-Wc++11-narrowing]".

The problem that the block of code in question works around was fixed in LLVM r82228 and landed in clang 2.7.
5731 	213d 12h 	hendricks266 	/ 	libdivide.h: Silence "warning: variable 'result' is uninitialized when used here [-Wuninitialized]".
5730 	213d 20h 	hendricks266 	/ 	Amend previous commit. DONT_BUILD.
5729 	215d 14h 	hendricks266 	/ 	Fix NO_ALIGNED_MALLOC to actually work and not transpose the parameters. DONT_BUILD.
5728 	222d 18h 	terminx 	/ 	Add CON_CLAMP
5727 	222d 18h 	terminx 	/ 	VS solution update. DONT_BUILD.
5726 	222d 18h 	terminx 	/ 	Fix issue where sometimes hitscan projectile trails weren't spawning
5725 	222d 18h 	terminx 	/ 	Misc Polymost crap. Improves detection of sprite/wall collisions for z-fighting avoidance
5724 	222d 18h 	terminx 	/ 	Replace uses of "swap64bit" where "swapdouble" is what is really meant. There is nothing in this to handle potential platforms where sizeof(double) != sizeof(int64_t)
5723 	222d 18h 	terminx 	/ 	Revert bad attempt at fixing cstat 1024
5722 	222d 18h 	terminx 	/ 	Apply patch from http://bugs.eduke32.com/index.php?do=details&task_id=21
5721 	222d 18h 	terminx 	/ 	Change default pointhighlightdist in the editor to 128
5720 	225d 14h 	hendricks266 	/ 	Reorder preprocessor lines in libdivide.h so that LIBDIVIDE_USE_SSE2 is defined before emmintrin.h is included. Fixes ticket #23. DONT_BUILD.
5719 	225d 16h 	hendricks266 	/ 	More Android build changes. DONT_BUILD.
5718 	230d 21h 	hendricks266 	/ 	A quick hack so that Mapster can load more pre-v7 PALETTE.DAT files.
5717 	232d 08h 	hendricks266 	/ 	Some stuff for using clang to build on Android. DONT_BUILD.
5716 	232d 16h 	hendricks266 	/ 	Enable LIBDIVIDE_USE_SSE2 under x86_64 builds or if the binary is built with SSE2 optimizations.
5715 	232d 16h 	hendricks266 	/ 	GL ES: Interpreting glGetError as always meaning "this internal texture format doesn't work" is too dangerous to keep in the live code (not to mention wasteful). Move it to a new and improved Polymost_InitDummyTexture, now called Polymost_DetermineTextureFormatSupport.
5714 	232d 16h 	hendricks266 	/ 	Polymost: Factor out the ETC block preparation by moving the ETC function decision from Polymost_SendTexToDriver into Polymost_PickETCFunction.
5713 	232d 16h 	hendricks266 	/ 	Polymost: Allow compressed ART tiles (r_texcompr 2) to be cached.
5712 	232d 16h 	hendricks266 	/ 	You'll Cowards Don't Even Indent
5711 	232d 16h 	hendricks266 	/ 	Polymost: Tweak the "don't upload textures with dimension > xdim" GL ES rule to limit to the power of two greater than xdim instead of less than it.
5710 	232d 16h 	hendricks266 	/ 	Polymost: Clean up and rearrange some texcache code. No functional changes.
5709 	232d 16h 	hendricks266 	/ 	Polymost: Call texcache_calcid once per texture instead of twice. Clean it up a little while we're at it.
5708 	232d 16h 	hendricks266 	/ 	Ensure that game backgrounds that sometimes get drawn with orientation&64 always get drawn with orientation&64 to avoid wasting RAM.
5707 	233d 22h 	hendricks266 	/ 	Small tweaks to Android.mk.
5706 	233d 22h 	hendricks266 	/ 	Add a hack so that when exit() is called on Android, we instead longjmp to main() and return from there.
5705 	233d 22h 	hendricks266 	/ 	Defs: Add "artquality" subtoken to textures, model skins, and skyboxes, which grants the texture HICR_ARTIMMUNITY. In effect, this implies "nodownsize" and signals that texture compression would be undesirable, but okay using r_texcompr mode 2 (aggressive).
5704 	233d 22h 	hendricks266 	/ 	In polymost_glinit, pass a dummy 4x4 texture to uploadtexture in order to detect what compressed texture formats are acceptable without wasting time compressing the first texture it encounters, such as the 3D Realms screen, in case the graphics chip won't take it.
5703 	233d 22h 	hendricks266 	/ 	Models: This seems like a bugfix.
5702 	233d 22h 	hendricks266 	/ 	Fix an unused variable warning introduced in r5696.
5701 	233d 22h 	hendricks266 	/ 	Revert post-r5496 warning cleanup.
5700 	253d 13h 	terminx 	/ 	Revert r5496
5699 	253d 13h 	terminx 	/ 	Tweak nofog, DONT_BUILD.
5698 	253d 13h 	terminx 	/ 	Disable prompt to upgrade from the shareware version after 50 runs
5697 	253d 13h 	terminx 	/ 	Allow turning off the jetpack or HoloDuke while looking through a security monitor
5696 	253d 13h 	terminx 	/ 	Lookup tables for mapping inventory item indexes to icons (and vice versa). DONT_BUILD.
5695 	253d 13h 	terminx 	/ 	This file lives elsewhere now. DONT_BUILD.
5694 	260d 13h 	hendricks266 	/ 	Polymost: Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall.
5693 	260d 13h 	hendricks266 	/ 	Menus: Adjust the way bottom edges are clipped in rotatesprite to better handle tall text, or text with long Q tails.
5692 	264d 18h 	hendricks266 	/ 	A potential fix for the "loading sounds and music from zip files" bug.
5691 	269d 11h 	hendricks266 	/ 	OS X: Only build the SDLMain object with SDL 1.2.
5690 	269d 11h 	hendricks266 	/ 	GL ES: Introduce ETC1 and (alpha-less) ETC2 texture compression, which improves performance by using less VRAM and requiring shorter data bus transfers.
5689 	269d 11h 	hendricks266 	/ 	etcpak: Modify ProcessRGB to take input in RGBA format instead of BGRA.
5688 	269d 11h 	hendricks266 	/ 	etcpak: Enforce C linkage on the ProcessRGB functions.
5687 	269d 11h 	hendricks266 	/ 	etcpak: Replace use of std::array (which seems not to exist under all compilers) with simple custom class.
5686 	269d 11h 	hendricks266 	/ 	etcpak: Replace x86-specific _bswap intrinsic with custom byteswap function (which a good compiler should treat identically anyway).
5685 	269d 11h 	hendricks266 	/ 	etcpak: Remove C++11 dependency on cstdint when compiling with an earlier standard revision.
5684 	269d 11h 	hendricks266 	/ 	etcpak: Modify include guard tokens to conform to the C and C++ standards by not using underscore prefixes.
5683 	269d 11h 	hendricks266 	/ 	etcpak: Remove SSE4.1 and AVX2 support.

They are of no use to us on ARM.
5682 	269d 11h 	hendricks266 	/ 	etcpak: The fma function is not a member of the std namespace.
5681 	269d 11h 	hendricks266 	/ 	etcpak: Fix type problem in ProcessRGB_ETC2.
5680 	269d 11h 	hendricks266 	/ 	Add the ETC compression algorithm portions of etcpak to the repository, with no modifications.
5679 	269d 11h 	hendricks266 	/ 	Fix Android warnings missed due to Android.mk misconfiguration.
5678 	269d 11h 	hendricks266 	/ 	Fix warnings pointed out by Xcode.
5677 	269d 11h 	hendricks266 	/ 	Android: Minor build system cleanup.
5676 	269d 11h 	hendricks266 	/ 	jwzgles: Add glCompressedTexImage2D and glCompressedTexSubImage2D as cheap copies of their non-compressed variants.
5675 	269d 11h 	hendricks266 	/ 	jwzgles: Allow using RGBA as the input texture format for an alpha-less internal texture format.
5674 	269d 11h 	hendricks266 	/ 	jwzgles: Revert part of r5655 that wiped out my cast-qual fixes from r5551.
5673 	269d 11h 	hendricks266 	/ 	Engine: Clean up texcache_enabled.
5672 	269d 11h 	hendricks266 	/ 	Un-break the iOS build.
5671 	281d 16h 	terminx 	/ 	Fix drawing voxels with ids >= 256
5670 	281d 18h 	terminx 	/ 	Make sprite tails and label borders purple if the sprite is blocking.
5669 	283d 16h 	terminx 	/ 	Fix Mapster32 sprite selection colors when using a tiles.cfg that defines tile groups using colors from the bright half of the original 16-color palette.

In layman's terms, this fixes the effect sprites flashing black in 2d mode.
5668 	283d 16h 	terminx 	/ 	Minor change of scope of a couple variables. DONT_BUILD.
5667 	283d 16h 	terminx 	/ 	Add .ssi to the list of file extensions loaded automatically when passing a directory with -game_dir
5666 	283d 16h 	terminx 	/ 	Fix a bug where cvars of type CVAR_UINT couldn't be set to values larger than a signed int due to clamping by atoi/atol.
5665 	283d 16h 	terminx 	/ 	Play DUKE_GETWEAPON6 in cheat menu
5664 	283d 16h 	terminx 	/ 	Add #pragma once to the top of a couple of the most commonly included headers in build/include. DONT_BUILD.
5663 	283d 16h 	terminx 	/ 	Android UI work. DONT_BUILD.
5662 	283d 16h 	terminx 	/ 	pragma once for mact headers.
5661 	283d 16h 	terminx 	/ 	Android stuff. DONT_BUILD.
5660 	283d 16h 	terminx 	/ 	Remove useless bytesperline parameter from a couple of kplib functions.
5659 	283d 16h 	terminx 	/ 	Disable gamma based brightness with GL ES because it's too slow. DONT_BUILD.
5658 	283d 16h 	terminx 	/ 	Remove a couple of apparently unncessary glPushMatrix()/glPopMatrix() calls.
5657 	283d 16h 	terminx 	/ 	Don't squish the player in lotag 1 sectors that have a SE7.
5656 	283d 16h 	terminx 	/ 	Move inventory enums into a separate inv.h. DONT_BUILD.
5655 	283d 16h 	terminx 	/ 	A couple of jwzgles fixes for mobile, from a newer version of xscreensaver. DONT_BUILD.
5654 	283d 16h 	terminx 	/ 	Make PLUTOPAKSPRITE glow on the startup screen like it glows in the menu, because the startup screen is displayed until input is received on mobile.
5653 	283d 16h 	terminx 	/ 	Fix parental lock
5652 	283d 16h 	terminx 	/ 	Android work. DONT_BUILD.
5651 	283d 16h 	terminx 	/ 	VS project and MSVC Makefile updates. DONT_BUILD.
5650 	290d 05h 	hendricks266 	/ 	Revert r5601 in its entirety. This fixes MIDI playback on Windows.
5649 	290d 05h 	hendricks266 	/ 	Engine: Add one-bit alpha detection for hightile and model skins.
5648 	290d 05h 	hendricks266 	/ 	Polymost: Add r_texcompr 2, which compresses ART in addition to hightile.
5647 	290d 05h 	hendricks266 	/ 	Polymost: Add HICR_ARTIMMUNITY and DAMETH_ARTIMMUNITY, which currently function identically to NOTEXCOMPRESS and NODOWNSIZE combined, and are only used when:
1. Using an ART tile
2. Using a hightile defined through the tilefromtexture "texture" subtoken
3. Using a hightile that, if downsized, will be smaller than the ART tile for that tilenum (tenuous)
5646 	290d 05h 	hendricks266 	/ 	Nuke some troublesome default texcache setting detection/enforcement in game.c that looks redundant anyway.
5645 	290d 05h 	hendricks266 	/ 	Fix mistakes in r5642.
5644 	292d 21h 	hendricks266 	/ 	Engine: Move daskinloader into mdloadskin and clean up it and gloadtile_hi against one another.
5643 	297d 10h 	hendricks266 	/ 	Windows: Eliminate the need for separate manifests for 32-bit and 64-bit builds by specifying a wildcard for processorArchitecture attributes.
5642 	297d 10h 	hendricks266 	/ 	Polymost: Refactor all GL internal texture format decision making into uploadtexture().

This directly achieves the following:
* Eliminated codedup.
* Recently introduced GL ES performance downsampling now applies to model skins.
* Replaces the alpha/art format distinction with {RGB/no alpha, RGBA/one-bit alpha (ART transparency), RGBA/full alpha}.
* Cleanly allows multiple fallback formats for each type.
* Ready for further commits.
5641 	297d 10h 	hendricks266 	/ 	Add BuildGLErrorCheck(), useful for debugging GL.
5640 	297d 10h 	hendricks266 	/ 	Engine: Rename HICR_NOCOMPRESS to HICR_NODOWNSIZE, CACHEAD_NOCOMPRESS to CACHEAD_NODOWNSIZE, DAMETH_NOCOMPRESS to DAMETH_NODOWNSIZE, and HICR_NOSAVE to HICR_NOTEXCOMPRESS.
5639 	297d 10h 	hendricks266 	/ 	Windows: Remove OS version guard. Unsupported versions will fail to run in the first place due to missing symbol errors.
5638 	297d 10h 	hendricks266 	/ 	Windows: Re-add pre-XP version strings.
5637 	297d 10h 	hendricks266 	/ 	More SDL 1.2 on Windows stuff that should not have been removed in r4749 and was missed in r4774.
5636 	297d 10h 	hendricks266 	/ 	Add preprocessor token NO_ALIGNED_MALLOC which disables compilation with aligned memory allocation. Useful for old versions of Windows and Mac OS X.
5635 	297d 10h 	hendricks266 	/ 	More of r5556.
5634 	297d 10h 	hendricks266 	/ 	iOS: Fix on-screen keyboard, broken in r5625.
5633 	297d 10h 	hendricks266 	/ 	Xcode: Add recently created game source files to project.
5632 	297d 10h 	hendricks266 	/ 	Xcode: Require full screen.
5631 	297d 10h 	hendricks266 	/ 	Xcode: Fix launching on iOS 6.
5630 	297d 10h 	hendricks266 	/ 	Xcode: Fix iOS hardware deployment.
5629 	308d 21h 	terminx 	/ 	Android shit. DONT_BUILD.
5628 	312d 13h 	terminx 	/ 	Fix animsounds
5627 	312d 20h 	terminx 	/ 	Fix CON_IFCUTSCENE
5626 	312d 20h 	terminx 	/ 	Fix anim definition problem
5625 	312d 20h 	terminx 	/ 	Android crap. DONT_BUILD.
5624 	312d 20h 	terminx 	/ 	Add some debug assertions for the hash table stuff.
5623 	312d 20h 	terminx 	/ 	Fix https://forums.duke4.net/topic/8450-
5622 	312d 20h 	terminx 	/ 	Remove -fno-lto-odr-type-merging, turns out it's an obscure option that isn't enabled in the synthesis toolchain. Oh well.
5621 	312d 20h 	terminx 	/ 	Add support for changing the refresh rate in SDL builds. Should also fix non-SDL builds.
5620 	312d 20h 	terminx 	/ 	Android build fix. DONT_BUILD.
5619 	312d 20h 	terminx 	/ 	Update Android Makefile with new source files
5618 	312d 20h 	terminx 	/ 	Break out screen drawing stuff from game.c into screens.c and command line processing stuff into cmdline.c
5617 	319d 13h 	terminx 	/ 	Limit -fno-lto-odr-type-merging to GCC 5.x
5616 	319d 14h 	terminx 	/ 	Implement CON_NEXTSECTORNEIGHBORZ
5615 	319d 14h 	terminx 	/ 	Better names for anim playback functions
5614 	319d 14h 	terminx 	/ 	Break all of the text printing stuff out of game.c and into a separate screentext.c/h
5613 	319d 14h 	terminx 	/ 	Break out status bar code into sbar.c/h
5612 	319d 14h 	terminx 	/ 	Minor cleanup
5611 	319d 14h 	terminx 	/ 	Break cheat code stuff out of game.c and into cheats.c/h. Remove unnecessary header includes from several modules (all relevant headers are already pulled in by duke3d.h).
5610 	319d 14h 	terminx 	/ 	Add -fno-lto-odr-type-merging to LTO builds to disable a feature that generates a warning in newer versions of GCC
5609 	319d 14h 	terminx 	/ 	Fix compile warning
5608 	323d 19h 	terminx 	/ 	Fix r5548
5607 	324d 09h 	terminx 	/ 	"i needed to comment out line 111 in source/sdlmusic.c to be able to compile r5606"
5606 	324d 10h 	terminx 	/ 	Pause and resume sounds instead of just stopping them when opening menus or pausing the game.
5605 	324d 16h 	terminx 	/ 	Fix Polymost issue reported at https://forums.duke4.net/topic/8470-weirdness-of-players-sprite-in-view-modef7/
5604 	324d 16h 	terminx 	/ 	Implement Mapster32's CON_FOR into EDuke32.
5603 	324d 16h 	terminx 	/ 	VS project fixes, DONT_BUILD.
5602 	324d 16h 	terminx 	/ 	Add SFLAG_REALCLIPDIST to bypass hard-coded clipdist fuckery based on xrepeat and picnum. This also changes some bad uses of A_CheckSpriteTileFlags() into A_CheckSpriteFlags() instead.
5601 	324d 16h 	terminx 	/ 	Bring out yer dead!
5600 	324d 16h 	terminx 	/ 	Add a few missing files to the VS project. DONT_BUILD.
5599 	324d 16h 	terminx 	/ 	This never should have been committed. DONT_BUILD.
5598 	324d 16h 	terminx 	/ 	Renamed "veryclean" make recipe to "clean" and added veryclean back as an alias for compatibility. This also adds a suggestion to run "make clean" when linking fails. DONT_BUILD.
5597 	330d 06h 	terminx 	/ 	Fix Polymer wall updating
5596 	330d 06h 	terminx 	/ 	Fix animsounds error message. DONT_BUILD.
5595 	330d 07h 	terminx 	/ 	Cheap hack to let Mapster32 read the visibility parameter from gamestartup when parsing the CONs for sound definitions.
5594 	330d 07h 	terminx 	/ 	Fix switch/case regressions introduced in r5577.
5593 	330d 09h 	hendricks266 	/ 	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.
5592 	330d 09h 	hendricks266 	/ 	Lunatic: Fix unused-parameter warnings.
5591 	330d 09h 	hendricks266 	/ 	Lunatic: Fix discarded-qualifiers warnings.
5590 	330d 09h 	hendricks266 	/ 	Lunatic: Fix cast-qual warnings having to do with L_RunString.
5589 	330d 09h 	hendricks266 	/ 	Clean up some cvar definitions.
5588 	330d 09h 	terminx 	/ 	"4 spaces originally
2 spaces now
0 idea how that even happened"
5587 	330d 09h 	terminx 	/ 	Fix problem with C-CON sector and wall structure access. Oops.
5586 	330d 09h 	terminx 	/ 	Minor cleanup. DONT_BUILD.
5585 	330d 09h 	terminx 	/ 	Fix issue with the info message for toggling floor texture expansion bit in Mapster32 only reading the value from the sector's ceiling instead of what you were actually pointing at.
5584 	332d 21h 	terminx 	/ 	I still make off-by-one errors because I am a horrible programmer. :D
5583 	335d 15h 	hendricks266 	/ 	Update scripts that make 7-Zip packages to enable solid archives for better compression. DONT_BUILD.
5582 	335d 15h 	hendricks266 	/ 	synthesis.sh: Really accomplish r5549. DONT_BUILD.
5581 	335d 21h 	terminx 	/ 	CON_MOVESECTOR. Triggers built-in sector movement routines... not really appropriate to use outside of EVENT_MOVEEFFECTORS.
5580 	335d 21h 	terminx 	/ 	Replace msx/msy global arrays with vec2_t g_origins. Bump BYTEVERSION.
5579 	335d 21h 	terminx 	/ 	EVENT_MOVEEFFECTORS. Allows disabling, overriding, or just plain tampering with built-in SECTOREFFECTOR effects.
5578 	335d 21h 	terminx 	/ 	EVENT_MOVESECTOR. This isn't enough to really do anything with yet--more to come.
5577 	335d 21h 	terminx 	/ 	Revise compilation of CON_CASE and CON_DEFAULT.
5576 	335d 21h 	terminx 	/ 	Inline some things that looked like happy, fun candidates for inlining.
5575 	335d 21h 	terminx 	/ 	Fix compilation of malformed statements using array style notation.
5574 	335d 21h 	terminx 	/ 	Move C-CON compile stat printing into its own function.
5573 	335d 21h 	terminx 	/ 	Use lists for the many hash tables used in the C-CON compiler instead of dozens of lines of calls to hash_init() and hash_free().
5572 	335d 21h 	terminx 	/ 	const stuff
5571 	335d 21h 	terminx 	/ 	Add CON compiler error for malformed comments
5570 	335d 21h 	terminx 	/ 	Minor cleanup, DONT_BUILD.
5569 	335d 21h 	terminx 	/ 	First attempt at providing CON control of the internal sector animation system. Read the commit if you want to know how it works!
5568 	342d 09h 	terminx 	/ 	Mapster32: configurable point and line highlight/selection distances
5567 	342d 09h 	terminx 	/ 	Further cleanup of A_InsertSprite().
5566 	345d 06h 	hendricks266 	/ 	Xcode: HAVE_VORBIS and HAVE_FLAC under OS X
5565 	345d 06h 	hendricks266 	/ 	Xcode: Enable many more compiler warnings.

(and fix some compiler settings)
5564 	345d 06h 	hendricks266 	/ 	Xcode: Add GameController.framework, needed by SDL2, when building for iOS.
5563 	345d 06h 	hendricks266 	/ 	Xcode: Don't link libs to libs.
5562 	345d 06h 	hendricks266 	/ 	Xcode: Bump OS X deployment target to 10.10, because I run that on my machine and Homebrew's libs target it. Also set the iOS deployment target to 6.0, the minimum Xcode will allow me.
5561 	345d 06h 	hendricks266 	/ 	Xcode: Update file listings.
5560 	345d 06h 	hendricks266 	/ 	Xcode: Clean up how some file paths are defined.
5559 	345d 06h 	hendricks266 	/ 	Xcode: Automatically suggested changes.
5558 	345d 06h 	hendricks266 	/ 	iOS: Eliminate some minor warnings.
5557 	345d 06h 	hendricks266 	/ 	OS X: Fix Polymer build.
5556 	345d 06h 	hendricks266 	/ 	Replace the semicolon trailing empty-bodied loops with opening and closing braces.

I believe this is the clearest way to indicate that an empty-bodied loop is intended, as opposed to the possibility of a mistaken semicolon.

This eliminates "warning: suggest a space before ‘;’ or explicit braces around empty body in ‘for’ statement" with GCC 4.2, which is important for old OS X versions.
5555 	345d 06h 	hendricks266 	/ 	Makefile: Improve how we enable and disable warnings. This fixes incompatibilities between r5543 and certain platforms.
5554 	345d 06h 	hendricks266 	/ 	Add some UNREFERENCED_PARAMETER for when Vorbis or FLAC are disabled.
5553 	345d 06h 	hendricks266 	/ 	CON: Add userdef[].soundtoggle. Read-only.
5552 	345d 06h 	hendricks266 	/ 	Part two of more const casting, this time affecting argv instances.
5551 	345d 06h 	hendricks266 	/ 	Address some const-disregarding casts missed in r5540 due to conditional compilation settings and platforms.
5550 	345d 06h 	hendricks266 	/ 	Winlayer: Bound code with USE_GLEXT where missed in r5526.

Also make some dead GL debugging code not dead during debug builds.
5549 	345d 06h 	hendricks266 	/ 	synthesis.sh: Make use of the EDUKE32_REVISION file when packaging tarballs.
5548 	346d 12h 	terminx 	/ 	I'm either clever, or an idiot. Or both.
5547 	346d 12h 	terminx 	/ 	Enable -Wwrite-strings and fix all instances where string constants were passed to functions accepting a char ptr.
5546 	346d 12h 	terminx 	/ 	Use XXH64 functions for editor undo/redo when building for 64-bit.
5545 	346d 12h 	terminx 	/ 	Fix some ENet const issues. DONT_BUILD.
5544 	346d 12h 	terminx 	/ 	Update ENet to v1.3.13. DONT_BUILD.
5543 	346d 12h 	terminx 	/ 	Add -Wuninitialized, -Wlogical-op, and -Wcast-qual. DONT_BUILD.
5542 	346d 12h 	terminx 	/ 	Update to the newest version of xxHash.
5541 	346d 12h 	terminx 	/ 	Update vcxproj. DONT_BUILD.
5540 	346d 12h 	terminx 	/ 	Fix quite a few issues with casting away const and volatile qualifiers, found with -Wcast-qual. If we're going to use const everywhere, we should really mean it!
5539 	346d 12h 	terminx 	/ 	Negligible change to OS string printed at startup.
5538 	346d 12h 	terminx 	/ 	Fix a stupid error in MACT, found with GCC's -Wlogical-op parameter.
5537 	346d 12h 	terminx 	/ 	CON compilation and debug message fuckery affecting virtually nobody
5536 	346d 12h 	terminx 	/ 	Clean up some of the SDL version number spam at startup.
5535 	346d 12h 	terminx 	/ 	Fix a few instances where bitptr wasn't properly set after writing to the compiled script
5534 	346d 12h 	terminx 	/ 	Clean up a couple instances of direct usage of a magic number in the CON compiler. DONT_BUILD.
5533 	346d 12h 	terminx 	/ 	Make the bitptr stuff in the CON compiler more readable.
5532 	349d 15h 	hendricks266 	/ 	Add inthashtable_t, mapping intptr_t to intptr_t.
5531 	349d 15h 	hendricks266 	/ 	C-CON: Add getpv and setpv as short forms for get/setplayervar, and #include as an alternate for include.
5530 	349d 15h 	hendricks266 	/ 	C-CON: Add ifvarge, ifvarle, and ifvarboth in line with ifvarvarge, ifvarvarle, and ifvarvarboth.
5529 	349d 15h 	hendricks266 	/ 	Remove actors_inline, game_inline, and sector_inline objects, and move their code into other headers, set up to be compiled into well-fitting objects if inlining them is disabled.
5528 	349d 15h 	hendricks266 	/ 	Enable models by default under EDUKE32_GLES, because they now work!
5527 	349d 15h 	hendricks266 	/ 	Fix miscellaneous GL ES warnings
5526 	349d 15h 	hendricks266 	/ 	Introduce USE_GLEXT macro and use it to conditionally compile out all GL ARB function calls when compiling for GL ES platforms.

This replaces the previous hack where we kept the dynamic pointers null and simply never tried calling any of them by a conspiracy of default runtime settings and disabled menu options.

Code affected: VBO support for models, VPX GLSL decoding, texture compression (texture cache), and multitexturing (glow/detail maps).

This commit also replaces EDUKE32_GLES conditionals with USE_GLEXT where appropriate.

I didn't touch polymer.c because it depends too heavily on extensions for conditionally compiling them to make sense.
5525 	349d 15h 	hendricks266 	/ 	jwzgles: fix warnings when compiling on Linux
5524 	349d 15h 	hendricks266 	/ 	jwzgles: uncomment stub glPush/PopAttrib so that the editor links
5523 	349d 15h 	hendricks266 	/ 	jwzgles: fix errors when compiling on Linux
5522 	349d 15h 	hendricks266 	/ 	C-CON: Fix the return command within events, broken since r5097.
5521 	349d 15h 	hendricks266 	/ 	C-CON: Clean up pointer handling in the parser so we have less to re-offset in C_SetScriptSize. Also fixes bugs in r5093 and/or r5097.
5520 	349d 15h 	hendricks266 	/ 	C-CON: Fix VM_ScriptInfo so that it never reads before the beginning of the bytecode.
5519 	349d 15h 	hendricks266 	/ 	Remove -CONversion command line parameter, because it has been supplanted by r5499's automatic identifier masking.
5518 	349d 15h 	hendricks266 	/ 	Move loading of settings.cfg to before video init so that it can respect r_togglecomposition.
5517 	349d 15h 	hendricks266 	/ 	Menus: Move "Cheats" from Options to Game Setup.
5516 	349d 15h 	hendricks266 	/ 	Fix POLYMER=0 warnings introduced in r5496.
5515 	349d 15h 	hendricks266 	/ 	Fix USE_OPENGL=0 compiler errors introduced in r5475.
5514 	349d 15h 	hendricks266 	/ 	Windows: SDL 2.0.4
5513 	350d 13h 	terminx 	/ 	Alter VM_ScriptInfo() to take a ptr to the script to disassemble, and dump disassembly to the log at startup when an internal compiler error occurs.
5512 	350d 13h 	terminx 	/ 	Minor change to some gamevar warnings. DONT_BUILD.
5511 	350d 13h 	terminx 	/ 	Fix CON compiler errors. Me no smart.
5510 	350d 13h 	terminx 	/ 	Remove unused and utterly useless GAMEVAR_SECRET flag.
5509 	350d 13h 	terminx 	/ 	Fix warnings. DONT_BUILD.
5508 	350d 13h 	terminx 	/ 	Get constified
5507 	350d 13h 	terminx 	/ 	Fix a major bug where "enda" could be used to terminate an event, resulting in all kinds of issues.
5506 	353d 20h 	terminx 	/ 	Get rid of a bunch of useless comments.
5505 	353d 20h 	terminx 	/ 	Misc cleanup, add shorthand versions of getplayer, getactor, etc.
5504 	353d 20h 	terminx 	/ 	Fix MSVC warning. DONT_BUILD.
5503 	353d 20h 	terminx 	/ 	No longer link to GOG.com when no game data is found. :(
5502 	353d 20h 	terminx 	/ 	Treat "[]" as "[THISACTOR]" when accessing structure members through CON.
5501 	355d 15h 	terminx 	/ 	Add "klabs" keyword to CON, to take a gamevar and set it to its absolute value. The internal "inv" function to invert a gamevar's value has also been exposed externally.
5500 	355d 15h 	terminx 	/ 	Add commands added in previous commit to g_keywdate[], clean up a few CON compilation warning messages
5499 	355d 15h 	terminx 	/ 	Adds the following keywords from M32script into CON: shiftvarvarl, shiftvarvarr, ifvarvarle, ifvarvarge, ifvarvarboth, whilevarl, and whilevarvarl.

This also adds the shorthand versions of some commands, like "set" for "setvarvar", "add" for "addvarvar", "ife" for "ifvarvare", etc. There are about 30 of these. Because some of these names may already be used in some projects as variable names, this revision also includes a somewhat large change in variable naming rules: gamevars may now have the same names as CON keywords, with the caveat that the masked keyword is no longer accessible. This results in a warning at compile time but should ensure nobody's project ever stops compiling due to the introduction of new keywords.
5498 	360d 15h 	terminx 	/ 	Projectile changes:

-palette is now set at spawn time, instead of during movement (oops!)
-projectiles can no longer hit their owner during their first tic of movement
5497 	360d 15h 	terminx 	/ 	Fix hard coded white and red color indexes used in on-screen debug output, to better operate with a palette dissimilar to Duke3D.
5496 	360d 15h 	terminx 	/ 	Polymer lighting tweaks, mostly internal.
5495 	362d 01h 	hendricks266 	/ 	Mapster: Don't restrict setgamepalette to the range [0, 3].
5494 	362d 01h 	hendricks266 	/ 	Polymost: Make voxels take on the current basepalette, like they should.
5493 	362d 01h 	hendricks266 	/ 	Polymost: Fix voxels so palette colors are treated as 8-bit, not 6-bit. Overlooked in r5349.
5492 	362d 01h 	hendricks266 	/ 	Add new spriteflag SFLAG_GREENSLIMEFOOD = 8388608, which controls whether GREENSLIME will eat a given actor.

The flag is automatically set on LIZTROOP, LIZMAN, PIGCOP, and NEWBEAST, in a similar fashion as SFLAG_NOWATERDIP (r4956) and SFLAG_NODAMAGEPUSH (r4371).
5491 	365d 13h 	terminx 	/ 	Fix CLANG warnings
5490 	365d 13h 	terminx 	/ 	Fix issue with sin/cos CON commands that prevented using the special builtin structure shortcut access vars for input.
5489 	365d 13h 	terminx 	/ 	Add vm_player, vm_sprite and vm_distance to get/setuserdef. This controls the sprite and player referenced by things like "THISACTOR", all of the "ifp" conditionals, per-actor gamevar access, etc. This is intended to be used to un-gimp things like EVENT_WORLD.
5488 	365d 13h 	terminx 	/ 	VS solution update. DONT_BUILD.
5487 	365d 13h 	terminx 	/ 	Draw frame at level start after EVENT_LOADPLAYER instead of before.
5486 	365d 13h 	terminx 	/ 	Change references to eduke32.sourceforge.net to www.eduke32.com
5485 	365d 13h 	terminx 	/ 	Update LZ4
5484 	365d 13h 	terminx 	/ 	Fix cstat 1024 in classic and Polymer
5483 	365d 13h 	terminx 	/ 	Add "restartmap" console command
5482 	365d 13h 	terminx 	/ 	Increase Polymost depth fighting mitigation offset, plus some other minor changes that shouldn't affect anything.
5481 	365d 13h 	terminx 	/ 	Add support for sector/wall/sprite struct trackers to Polymer
5480 	365d 13h 	terminx 	/ 	Split Polymer artmap setup into polymer_setupartmap()
5479 	365d 13h 	terminx 	/ 	Use a hash table for finding Polymer buckets
5478 	365d 13h 	terminx 	/ 	Appease clang
5477 	365d 13h 	terminx 	/ 	Polymer light tweaks
5476 	365d 13h 	terminx 	/ 	Fix FIRELASER spawning multiple Polymer lights
5475 	365d 13h 	terminx 	/ 	Move vsync option to video setup
5474 	368d 11h 	hendricks266 	/ 	Prune the dynamic tile name system in the same manner as sounds were pruned in the previous commit and r4748.
5473 	368d 11h 	hendricks266 	/ 	Remove the __STATIC macros of dynamic sounds pruned in r4748.
5472 	368d 11h 	hendricks266 	/ 	Remove three unused-in-the-source dynamic sound variables partially forgotten in r4748.
5471 	368d 11h 	hendricks266 	/ 	Menus: When RETURN is set to INT32_MIN in EVENT_CHANGEMENU, cancel any animations in addition to not changing the current menu.
5470 	368d 11h 	hendricks266 	/ 	Name map best time entries in the cfg by MD4 checksum instead of filename.

Existing filename-demarcated personal bests are still read as a fallback if an MD4 is not found, but only MD4 entries are written.

Fans of both Lunar Apocalypse and Nuclear Winter should sort out the MapTimes section of their cfg file manually.
5469 	368d 11h 	hendricks266 	/ 	Fix two bugs in SCRIPT_GetNumber that cause it to issue an incorrect return value.
5468 	368d 11h 	hendricks266 	/ 	Duke3D: Add globalgameflag 4, DUKE3D_NO_PALETTE_CHANGES. This disallows the game from performing its usual modification to palette data after loading it, mainly the transparent color.

If you use this flag, make sure your transparent color it set exactly as you would like it to be used in cases like those presented in the previous commit.
5467 	368d 11h 	hendricks266 	/ 	Polymodes: In gloadtile_art, (1) get the current texel's index, (2) apply alpha if index == 255, (3) get the index by indexing into the specified palookup table, and then (4) apply fullbright considerations. Previously these tasks were performed in order 1432.
5466 	384d 05h 	hendricks266 	/ 	Add test cases for previous commit: transhacktest.map and .m32
5465 	384d 05h 	hendricks266 	/ 	Polymodes: 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.
5464 	384d 05h 	hendricks266 	/ 	Polymost: Enumify the lower bits of the method/dameth argument to various functions.
5463 	384d 05h 	hendricks266 	/ 	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.
5462 	384d 05h 	hendricks266 	/ 	Fix unused global variables in menus.c with DROIDMENU defined.
5461 	384d 05h 	hendricks266 	/ 	Fix an unused variable in menus.c with USE_OPENGL=0.
5460 	390d 08h 	hendricks266 	/ 	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.
5459 	390d 08h 	hendricks266 	/ 	More NAM/WWII GI "bluefont" xbetween fixes missed in r5452.
5458 	390d 08h 	hendricks266 	/ 	Fix a compiler error on introduced in r5445.
5457 	390d 08h 	hendricks266 	/ 	Fix typo in r5448.
5456 	390d 08h 	hendricks266 	/ 	Fix compiler warnings when building for 32-bit.
5455 	390d 08h 	hendricks266 	/ 	WWII GI: Use "GI2" as the cheat prefix instead of "WW2" because W conflicts with WSAD movement.
5454 	393d 04h 	hendricks266 	/ 	Duke3D/Startup: Autodetect the installation path of the World War II GI release on Steam. Windows and Linux only for now, as there appears to be no OS X support.
5453 	393d 04h 	hendricks266 	/ 	Implement WWII GI weapon display code.

Remaining issues with the weapons (both functionality and display):
- The "pistol", "shotgun", and "chaingun" fire too slowly.
- The flamethrower fires too quickly.
- The bazooka drop for reload is late.
- Upon starting a level, the "pistol" should show a reload frame, but it does not.
5452 	393d 04h 	hendricks266 	/ 	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.
5451 	393d 04h 	hendricks266 	/ 	Implement NAM and WWII GI's replacement cheats.

Whereas Duke starts cheats with DN, NAM starts with NVA and WWII GI starts with WW2. (Hackily: CheatKeys[] is still size 2, and the third character is at the start of every CheatString.)

The cheats hyper (NAM-only), coords, view, skill, weapons, and inventory were not originally present but since they work properly and this is EDuke32, I have re-added them. Non-working cheats are now disabled.
5450 	393d 04h 	hendricks266 	/ 	Don't implicitly define GAMEFLAG_NAM for WWII GI. Instead, implement a new macro NAM_WW2GI synonymous with (NAM || WW2GI).
5449 	393d 04h 	hendricks266 	/ 	Restrict the right-edge widescreen clamping of the Pistol reload and Freezer to Duke Nukem 3D only: NAM and WWII GI don't need it.
5448 	393d 04h 	hendricks266 	/ 	Duke3D/Startup: Instead of adding Megaton's music paths, don't remove the gameroot path and let my new S_OpenAudio take care of the SC-55 soundtrack.
5447 	393d 04h 	hendricks266 	/ 	Duke3D/Startup: Clean up the Windows registry reading code.

There is no need to cache the result of a function called only once for each input.
5446 	393d 04h 	hendricks266 	/ 	Duke3D/Sound: Add a hack to the previous commit so that Megaton's grabbag.voc will still upgrade to music/grabbag_voc.ogg, but its subway.voc will no longer upgrade to music/subway.ogg.
5445 	393d 04h 	hendricks266 	/ 	Duke3D/Sound: Restructure S_OpenAudio to check in more paths. For each path, it performs the filename transformations and checks it does currently.

First, it will try the local path (as previously).
Second, it will check to see if the filename originally requested exists inside a GRP or SSI file (its parent), and if it does, it will check in "music/<parent's name sans extension>/".
Third, it will check in "music/".

Do not rely on this when distributing mods: These checks are hacks and may potentially be removed.
5444 	393d 04h 	hendricks266 	/ 	Duke3D/Sound: Make kopen4loadfrommod a tail-call from S_UpgradeFormat, rename the function to S_OpenAudio, and replace 4x calls to one and then the other. No functional changes.
5443 	393d 04h 	hendricks266 	/ 	cache1d: Add kfileparent().
5442 	393d 04h 	hendricks266 	/ 	cache1d: Bikeshed some formatting in kopen_internal().
5441 	393d 04h 	hendricks266 	/ 	cache1d: Save the filenames of GRP and SSI files that are opened.
5440 	393d 04h 	hendricks266 	/ 	Polymodes: 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.
5439 	393d 04h 	hendricks266 	/ 	Polymodes: Slight optimizations in getshadefactor.
5438 	393d 04h 	hendricks266 	/ 	Polymost: Bookend the recursive call to polymost_drawpoly as part of the fullbright pass with bglDepthFunc(GL_EQUAL) and bglDepthFunc(GL_LEQUAL) to ensure that the fullbright overlay is always visible and never fights with the sprite itself.
5437 	393d 04h 	hendricks266 	/ 	Polymost: Remove "indrawroomsandmasks" variable and its only use in polymost_drawpoly as a condition for the fullbright pass.
5436 	393d 04h 	hendricks266 	/ 	Polymost: Connect spriteext[].x/ypanning to model UVs (range 0-255).
5435 	397d 04h 	helixhorned 	/ 	player.c: factor out large A_ShootWithZvel() block into A_ShootHardcoded()

The block is taken over verbatim; 'vec3_t srcvect' is passed by value.

The primary purpose of this is that it's easier to compare custom projectile
behavior in A_ShootCustom() with the hardcoded one by reading the code
of these two functions. For example, this may be of use to modders wishing
to emulate a hardcoded projectile.

DONT_BUILD.
5434 	397d 20h 	helixhorned 	/ 	Mapster32: in drawspritelabel(), use fixed background color.

Make it always one of the colors that the 2D color cycles to
(base color + offset in [0 .. 4]) instead of <base color>-3, as
that one might be in a different color ramp.
5433 	397d 20h 	helixhorned 	/ 	Mapster32: add byte array editorcolors[256] to m32script variables.

This makes it possible to set up editor colors at startup (from
m32_autoexec.cfg). For example:

script_expertmode 1
do for i range 256 ifge i 33 { set editorcolors[i] i }
script_expertmode 0

Use this method in the description of how to get old-style 2D colors
in tiles.cfg and suggest an alternative color index pair.
5432 	397d 20h 	helixhorned 	/ 	Mapster32: make 'script_expertmode' require an argument (0 or 1) to toggle.

Without an argument, it prints the current state.
5431 	403d 01h 	helixhorned 	/ 	In package/sdk/tiles.cfg, use the right word for "remove commenting".

DONT_BUILD.
5430 	403d 17h 	helixhorned 	/ 	Mapster32: changes to aid getting the old color scheme (by customizing).

- bump MAX_TILE_GROUP_ENTRIES to MAXUSERTILES
- in loadtilegroups(), only assign a tile color if it wasn't already
assigned
- allow "hidden" tile groups by omitting the hotkey
- Tweak the description added to tiles.cfg
5429 	403d 17h 	helixhorned 	/ 	Mapster32: honor "blocking color" declared with DEF 'spritecol' et al.

Meaning tilegroup's 'colors' directive.

Also, to the packaged tiles.cfg, add a description of how to emulate the
earlier Mapster32 sprite coloring for one tile group.
5428 	403d 17h 	helixhorned 	/ 	Mapster32: in a.m32, draw color info ("set showpal 1") more informatively.

- draw ticks above the palette "ruler"
- draw all editor colors (colors in editorcolor[])
5427 	403d 17h 	helixhorned 	/ 	Mapster32: introduce DEF command "2dcolidxrange <col> <idx> <idxend>".

<col> is the editorcolor[] starting index
<idx> is the actual color index start
<idxend> is the actual color index end

So, editor colors from <col> onward will be mapped to
[<idx> .. min(<idxend>, 255)].

Takes precedence over '2dcol'.
5426 	403d 17h 	helixhorned 	/ 	Mapster32: in drawscreen_drawsprite(), "sprite[j]." -> "spr->".

Also a similar stylistic tweak in parsetilegroups().
5425 	403d 17h 	helixhorned 	/ 	Mapster32: formatting changes around 2D sprite/wall color code.
5424 	403d 21h 	helixhorned 	/ 	Fix POLYMER=0 build. DONT_BUILD.
5423 	403d 23h 	helixhorned 	/ 	Mapster32: fix variable that is used uninitialized.
5422 	403d 23h 	helixhorned 	/ 	premap.c: on prelevel(), clear bits 16 and 32 of effector sprites.
5421 	403d 23h 	helixhorned 	/ 	Mapster32: remove "Ludicrous Zoom!" message when reaching max 2D zoom.

The problem is that it stays a few seconds afterwards, obscuring
information on the status line.
5420 	403d 23h 	helixhorned 	/ 	Mapster32: add var 'corruptcheck_game_duke3d' and enable by default.

Currently, this checks for effector sprites that are not face-aligned.
See
https://forums.duke4.net/topic/8324-icestation-colossus-map-broken
5419 	415d 23h 	hendricks266 	/ 	baselayer.c: Remove nested "#ifdef USE_OPENGL"s left over from the removal of the POLYMOST macro. DONT_BUILD.
5418 	415d 23h 	hendricks266 	/ 	astub.c: Fix typos in console function definitions. DONT_BUILD.
5417 	416d 21h 	hendricks266 	/ 	Polymost: Clean up formatting of parallax sky code and comments, in part so that the floor and ceiling sections are line-for-line consistent. DONT_BUILD.
5416 	416d 21h 	hendricks266 	/ 	Build tools/arttool: Port commit f874a10ef136f4de3c9a9cccf3eacd886bae0d2d from JFBuild: improved with info dumping and tile export
5415 	416d 21h 	hendricks266 	/ 	Build tools/arttool: long --> int
5414 	416d 21h 	hendricks266 	/ 	Use the script parser for names files instead of custom parsing. This allows names files to define labels as other labels.
5413 	417d 21h 	helixhorned 	/ 	Mapster32: various stylistic tweaks, no functional changes. DONT_BUILD.
5412 	418d 01h 	helixhorned 	/ 	Mapster32: in TROR-join sectors [Ctrl+J], print z difference hint.

At the very least, this makes it easier to decide for one option
("Connect yellow ceiling w/ blue floor (1) or (v)ice versa?")
when one of the differences is zero, which might have occurred from
temporarily breaking TROR links.
5411 	418d 01h 	helixhorned 	/ 	Mapster32: fix fillsector() calls before fade_editor_screen().

The latter allows one to specify a color to keep, but with r5302 the
fillsector() highlights are drawn with transparency, thus making it ineffective.
Add an argument to toggle transparency to fillsector()
(now fillsector_maybetrans()) and two wrapper functions.
5410 	418d 01h 	helixhorned 	/ 	Mapster32: don't offer to "Insert outer loop and make red walls" w/ RAlt+RCtrl.

This feature only makes sense with the complete de-selection of a set of
sectors, i.e. when pressing RAlt to do this, not adding or removing sectors
to/from the set of already highlighted ones.
5409 	425d 16h 	terminx 	/ 	Oops, forgot one. ;)
5408 	425d 16h 	terminx 	/ 	Menu options to control Polymer light and shadow counts
5407 	425d 18h 	terminx 	/ 	Fix cstat 1024 with Polymer
5406 	425d 18h 	terminx 	/ 	Add r_pr_lighting 2, which disables the hard-coded lights while leaving lights added in maps enabled.

This also adds a menu option to control r_pr_lighting.
5405 	425d 18h 	terminx 	/ 	Check whether the sprite is a wall, floor, or face sprite when deciding whether to bump it ahead of another entry based on position and owner.
5404 	425d 18h 	terminx 	/ 	Disable Polymer lights attached to hidden switches.
5403 	425d 18h 	terminx 	/ 	Improve depth fighting mitigation for floor aligned sprites.
5402 	425d 18h 	terminx 	/ 	Don't spawn BLOODPOOL 256 units above the ground.
5401 	425d 18h 	terminx 	/ 	Fix errant use of tsprite extra field to check an enemy's health.
5400 	427d 21h 	terminx 	/ 	Sprite sorting changes:

-Sort by owner now occurs only when two sprites have matching x/y coordinates.
-Cstat 1024 now activates a special drawing mode that indicates a sprite should be drawn without depth after all other sprites have been drawn. The previous cstat 1024 functionality, an internal hack for shadows cast by models in Polymost, has been moved to bit 1 of a new graphical effects bitfield stored in a tsprite's .extra member.
5399 	427d 21h 	terminx 	/ 	Add colmatch to Android Makefile. DONT_BUILD.
5398 	427d 21h 	terminx 	/ 	Tweak the amount that distance is factored in when mitigating depth fighting in Polymost.
5397 	427d 21h 	terminx 	/ 	Improve the behavior of the BLOODSPLAT family of sprites. This improves the effect so that the blood doesn't stutter when it moves, and no longer occasionally appears to climb back up the wall for a fraction of a second.
5396 	427d 21h 	terminx 	/ 	Minor cleanup to previous commit. DONT_BUILD.
5395 	429d 09h 	terminx 	/ 	Additional depth fighting mitigation for face sprites
5394 	429d 09h 	terminx 	/ 	Sort tsprites by owner as a replacement for the sort by statnum removed by Helixhorned a while back. Seems sensible enough...
5393 	429d 09h 	terminx 	/ 	Fix SE17 warp elevator transition jumps.
5392 	429d 09h 	terminx 	/ 	Fix up bloodsplat and decal positioning a bit. Nasty hacks removed. Yay.
5391 	429d 09h 	terminx 	/ 	New attempt at fixing the depth fighting with wall and floor-aligned sprites.
5390 	429d 09h 	terminx 	/ 	Add colmatch.c to VS project. DONT_BUILD.
5389 	429d 09h 	terminx 	/ 	Fix pathsearchmode in Mapster32 when using a .def which loads a .grp.
5388 	429d 09h 	terminx 	/ 	Set hit data on spawned decals
5387 	429d 09h 	terminx 	/ 	Fix saving and loading crosshaircolor, and fix fps counter color when using a palette that doesn't correspond to Duke3D's color indexes.
5386 	429d 09h 	terminx 	/ 	Add colmatch object to MSVC Makefile. DONT_BUILD.
5385 	429d 09h 	terminx 	/ 	Mapster32: fix 2d3d mode input issue when sector is -1
5384 	439d 10h 	hendricks266 	/ 	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.
5383 	439d 10h 	hendricks266 	/ 	Since gcc 4.2 complains about it on OS X 10.7, use initputs instead of initprintf when printing a single argument, even if it is already char const *.
5382 	439d 10h 	hendricks266 	/ 	Always compile with "-Wno-missing-braces", as the warnings it hides are useless. "-Wmissing-field-initializers" (part of "-Wextra") should cover us.
5381 	439d 10h 	hendricks266 	/ 	Fix two unused function warnings in mdsprite.c when building with POLYMER=0.
5380 	439d 10h 	hendricks266 	/ 	OS X: Fix -Wdeprecated-declarations compiler warnings in the startup windows.
5379 	439d 10h 	hendricks266 	/ 	OS X: Fix POLYMER=0 build.
5378 	439d 10h 	hendricks266 	/ 	Fix warning: explicitly assigning value of variable of type 'CACHE1D_FIND_REC *' (aka '_CACHE1D_FIND_REC *') to itself [-Wself-assign]
5377 	439d 10h 	hendricks266 	/ 	Fix some critical mistakes in my new def code (r5351 and r5367) caused by gaps in my attention.
5376 	439d 10h 	hendricks266 	/ 	Split the colormatching portion of getclosestcol_lim into getclosestcol_nocache_lim in case speed is desired when processing an image with mostly unique colors.
5375 	446d 05h 	hendricks266 	/ 	Duke: Add globalgameflag DUKE3D_NO_HARDCODED_FOGPALS, which prevents the game from automatically defining white, red, green, and blue fogpals in the first four adjacent empty palookup slots it finds.
5374 	446d 05h 	hendricks266 	/ 	Add globalgameflags to Duke-Mapster32's game-side def parsing.
5373 	446d 05h 	hendricks266 	/ 	Move PaletteIndexFullbrights back into the engine and autodetect fullbrights instead of hardcoding them.
5372 	446d 05h 	hendricks266 	/ 	Makefile: Automatically disable ASM when "arm" is found in `uname -m` on Linux.
5371 	446d 05h 	hendricks266 	/ 	Reverse the iteration direction of the getclosetcol fallback loop, preferring the tiebreaking color to be the first one numerically in the palette, not the last.
5370 	446d 05h 	hendricks266 	/ 	Fix a typo in loadpalette that broke reading of the lognumalphatabs byte.
5369 	446d 05h 	hendricks266 	/ 	Add forgotten newlines to error messages in loadpalette().
5368 	446d 05h 	hendricks266 	/ 	Before aliasing empty palookups to #0, check existing ones if they are identical to #0, and if so, also alias them. This saves memory in Polymost with tileshades enabled.
5367 	446d 05h 	hendricks266 	/ 	Defs: Add "undef" subtokens to and undef-range versions of basepalette, palookup, and blendtable.
5366 	451d 19h 	hendricks266 	/ 	Defs: Add "numalphatables" token, which serves the same purpose as the lognumalphatabs byte in PALETTE.DAT.
5365 	451d 19h 	hendricks266 	/ 	Fix error in r5346 that broke the MoreBlendTab section of PALETTE.DAT.
5364 	451d 19h 	hendricks266 	/ 	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.
5363 	451d 19h 	hendricks266 	/ 	Build tools: Clean up transpal and link it to colmatch.c instead of including a separate copy of the (old!) getclosestcol code.
5362 	451d 19h 	hendricks266 	/ 	Split the initialization of the pragma.h's libdivide tables into its own function.
5361 	451d 19h 	hendricks266 	/ 	Build tools/OS X: Fix build by satisfying compat.c's dependence on osxbits.m.
5360 	451d 19h 	hendricks266 	/ 	Build tools/Windows: Fix text outout by compiling without -mwindows.
5359 	451d 19h 	hendricks266 	/ 	Split the getclosestcol functions into a new object, colmatch.
5358 	453d 16h 	hendricks266 	/ 	Update Xcode project to reflect recent filename changes. DONT_BUILD.
5357 	455d 10h 	hendricks266 	/ 	Defs: Clean up the animtilerange token so that it is possible to specify backward animations in the logical tile1 > tile2 way.
5356 	455d 10h 	hendricks266 	/ 	Defs: 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.
5355 	455d 10h 	hendricks266 	/ 	C-CON: Correct handling of size-zero gamearrays: Prevent a crash upon loading a savegame containing them, and allow resizearray to zero.
5354 	455d 10h 	hendricks266 	/ 	C-CON: Fix a harmless "Internal compiler error" warning when using quick structure access on userdef.
5353 	455d 10h 	hendricks266 	/ 	CON: Add "defstate" token which functions identically as in M32script: synonymous with CON's "state" only at top-level (when defining a state). Useful for syntax highlighting.
5352 	455d 23h 	hendricks266 	/ 	Remove NULL checks before calling free(): they are unnecessary as per the C standard. Other cleanup includes factoring code into DO_FREE_AND_NULL() macros.
5351 	455d 23h 	hendricks266 	/ 	Defs: Add basepalette, palookup, and blendtable tokens.
5350 	455d 23h 	hendricks266 	/ 	Defs: Prevent tilefromtexture from ever assigning index #255 (the transparent color) to the processed image.
5349 	455d 23h 	hendricks266 	/ 	Internally, work with 24-bit palettes instead of 18-bit.
5348 	455d 23h 	hendricks266 	/ 	Restructure the basepaltable subsystem to support up to 256 palettes and use dynamic allocation like palookup and blendtable.
5347 	455d 23h 	hendricks266 	/ 	Don't error out when lookup.dat can't be read.
5346 	455d 23h 	hendricks266 	/ 	Restructure loadpalette() so that read errors are not immediately fatal and enforce that the necessary parts have been loaded in E_PostInit (after loaddefinitionsfile()).
5345 	455d 23h 	hendricks266 	/ 	Engine: Add E_PostInit, called from the game after loaddefinitionsfile().
5344 	467d 19h 	Plagman 	/ 	sd
5343 	470d 23h 	helixhorned 	/ 	Mapster32: call update_highlightsector() after 3D mode RCtrl+RAlt.
5342 	471d 14h 	hendricks266 	/ 	Update the precompiled Windows libraries: libogg 1.3.2, libvorbis 1.3.5
5341 	471d 14h 	hendricks266 	/ 	Merge compat-from-mingw-w64 into compat-to-msvc since we dropped support for mainline MinGW32, and add dll_dependency.S so we don't need to build the libs with "-fno-stack-check -fno-stack-protector -mno-stack-arg-probe".
5340 	471d 14h 	hendricks266 	/ 	Reinstate the printing of quote 121 when DNKEYS is used.
5339 	474d 08h 	helixhorned 	/ 	Mapster32: RCtrl+RAlt (+['] or [;]) selects sectors in 3D mode, by The Mechanic.
5338 	480d 09h 	helixhorned 	/ 	Mapster32: in manual member editing, Shift+ENTER allows toggling individual bits

For values that are displayed in hex.
Patch by The Mechanic, with modifications.
5337 	480d 23h 	helixhorned 	/ 	CON: amend action's viewtype -8 to be more in line with the others.
5336 	480d 23h 	helixhorned 	/ 	Mapster32: after playtesting with Esc+[T], break from the key polling loop.

Bug noticed and fix located by The Mechanic.
5335 	481d 06h 	helixhorned 	/ 	CON: allow viewtype -8 for 'action', meaning to x-flip the shown sprite.

Similarly to how -5 and -7 and are accepted since r3859.
5334 	492d 09h 	hendricks266 	/ 	Amend r5330.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=18519775df2df9a74a562c38bdc253d7fb02bd6b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 eduke32/Makefile                       | 10 ++++++----
 eduke32/distinfo                       |  8 +++++---
 eduke32/patches/patch-source_m32exec.c | 14 ++++++++++++++
 3 files changed, 25 insertions(+), 7 deletions(-)

diffs:
diff --git a/eduke32/Makefile b/eduke32/Makefile
index c706eac..cd842ec 100644
--- a/eduke32/Makefile
+++ b/eduke32/Makefile
@@ -1,10 +1,12 @@
 # $NetBSD: Makefile,v 1.1 2015/08/19 20:36:32 yhardy Exp $
 #
 
-DISTNAME=	eduke32_src_20150818-5334
-PKGNAME=	eduke32-5334
+EDUKE_SVN=	5948
+EDUKE_DATE=	20161204
+DISTNAME=	eduke32_src_${EDUKE_DATE}-${EDUKE_SVN}
+PKGNAME=	eduke32-${EDUKE_SVN}
 CATEGORIES=	games
-MASTER_SITES=	http://dukeworld.duke4.net/eduke32/synthesis/20150818-5334/
+MASTER_SITES=	http://dukeworld.duke4.net/eduke32/synthesis/${EDUKE_DATE}-${EDUKE_SVN}/
 EXTRACT_SUFX=	.tar.xz
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
@@ -12,7 +14,7 @@ HOMEPAGE=	http://eduke32.com/
 COMMENT=	Engine for Duke Nukem 3D
 LICENSE=	gnu-gpl-v2
 
-WRKSRC=		${WRKDIR}/eduke32_20150818-5334
+WRKSRC=		${WRKDIR}/eduke32_${EDUKE_DATE}-${EDUKE_SVN}
 USE_LANGUAGES=	c c++
 
 USE_TOOLS+=	gmake pkg-config
diff --git a/eduke32/distinfo b/eduke32/distinfo
index a010379..3a7ce59 100644
--- a/eduke32/distinfo
+++ b/eduke32/distinfo
@@ -1,7 +1,9 @@
 $NetBSD: distinfo,v 1.1 2015/08/19 20:36:32 yhardy Exp $
 
-SHA1 (eduke32_src_20150818-5334.tar.xz) = 438738932cff56c42fad62048d0ddf05bdb7dbcb
-RMD160 (eduke32_src_20150818-5334.tar.xz) = 7d4f4a9e50e5f1bf2e17b05ace99302de2981b25
-Size (eduke32_src_20150818-5334.tar.xz) = 14330976 bytes
+SHA1 (eduke32_src_20161204-5948.tar.xz) = aedf02ea3c6136a30336c3b8f239d37169d2bf2b
+RMD160 (eduke32_src_20161204-5948.tar.xz) = ec94f849a4fde700e38992663b6835e9613f4d4e
+SHA512 (eduke32_src_20161204-5948.tar.xz) = 0bfc0ef0c141918eb1923491ada6cdd3d421d8c606000ff84a10e2e5484425692a134e6d34c115b205f738524e8f9441db87a96f4b38de0889eb52e2839f87d8
+Size (eduke32_src_20161204-5948.tar.xz) = 14574972 bytes
 SHA1 (patch-build_include_compat.h) = 61f3bc58aafafa5b710b8dc5a69b839da080a317
 SHA1 (patch-build_src_glbuild.c) = 26eb91f06cbcfeaf6a53ad39055d7c78f6e006d1
+SHA1 (patch-source_m32exec.c) = 0e4a452c1920c6d1a5237775f97d9654ba7cb6b5
diff --git a/eduke32/patches/patch-source_m32exec.c b/eduke32/patches/patch-source_m32exec.c
new file mode 100644
index 0000000..482dcac
--- /dev/null
+++ b/eduke32/patches/patch-source_m32exec.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Include limits.h for INT32_MAX.
+
+--- source/m32exec.c.orig	2015-07-10 07:56:48.000000000 +0000
++++ source/m32exec.c
+@@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ */
+ //-------------------------------------------------------------------------
+ 
++#include <limits.h>
+ #include <time.h>
+ #include <stdlib.h>
+ 


Home | Main Index | Thread Index | Old Index