Build 6348
SVN-
Generale
What a hilarious typo
Nickname SVN e nomi Git sono unificati per persona.
What a hilarious typo
Allow scripts to change MAXSPRITESONSCREEN before calls to drawrooms() and friends
Check constants before THISACTOR in Gv_GetManyVars(). Seems much more likely to be true.
Revise some CON VM error messages for consistency. Upgrade a couple of CON VM errors to a new critical error type which pops up a dialog box when the error is encountered. If you've been writing crappy scripts that spam "divide by zero!" errors into the log that you've been ignoring, you're gonna have a bad time.
Reduce MAXSPRITESONSCREEN from 4096 to 2048. Email me if you have a map so poorly designed that this actually breaks something!
Some work on CON arrays. Hopefully nothing is broken!
Read setup again after compiling scripts
Allow writing to 8 and 16-bit CON arrays
Fix out of bounds write caused by memset call missed when tilesiz was changed from vec2_t to vec2s_t
script command aliases
Internal menu tweaks
Minor mact cleanup
Remove errant EDUKE32_PREDICT_FALSE
Allow certain debugging-specific cheats to be used from the console even in skill 4.
Turn DWM composition toggling (Windows Vista and 7 only) off by default.
We should only turn this on in specific cases, and turning it off by default will allow us to add these special cases as we get reports.
Use screentext's newline support for more mgametext.
Menu stuff
Combine CONTROL_KeyBinds and CONTROL_MouseBinds
Gv_FillWithVars
Add "activatecheat" console command.
Move addammo into own function.
Move addinventory command code into its own function.
Factor out modification of DukePlayer_t->actors_killed into P_AddKills().
Derp
Makefile changes required for MSYS2 builds to be functional again
Revert part of r6230
Revise r6305.
Optimize getofs_viewtype for precision and speed.
Add action viewtypes 12 (like 7 but not mirrored), 9, and 16.
Templatize getofs_viewtype functions.
When calculating which rotation to use for CON action viewtype 7, offset the frame intervals by 15 degrees instead of 22.5, clearly a copypaste error from viewtypes 5 or 8. Now these are properly centered.
Trailing whitespace.
Derp
Texcache cleanups. No longer allocates a 256 byte buffer for every cache entry's name.
scriptfile.[cpp|h] cleanups
Fix flickering text on the bonus screen. Derp.
OSD (console) cleanup
Inconsequential formatting
Fix crash when attempting to play an IVF video in 8-bit.
Menu stuff
Fix standalone warnings.
When playing an IVF upgraded from an ANM and no sound list has been defined for the IVF, use the ANM's sound list by converting framerates.
If an ANM is upgraded to an IVF, use the sounds defined for the .ivf if any have been.
Replace sound_func function pointer parameter and associate functions for hardcoded ANMs with equivalent animsounds arrays.
Let animsound value -1 stop all sounds.
Game defs: Add sounds sub-token to cutscene token that functions identically to animsounds.
More standalone stuff
Workaround for MSVC bug
Remove some Duke-specific screen displays from standalone builds
Fix command line help window in builds with the startup window disabled
Clean up command line parameter help text
Shrink the tilesiz vector to use int16_t members as the original arrays were.
Add EVENT_PRELOADGAME and EVENT_POSTLOADGAME.
Add drawline256 and drawlinergb commands that call the internal functions used for the automap lines.
drawline256 <x0> <y0> <x1> <y1> <index> drawlinergb <x0> <y0> <x1> <y1> <index> <rgb> The coordinates are xdim<<12/ydim<<12 based, not 320<<16x200<<16. <index> is a palette index, and for drawlinergb is used as a fallback in the software renderer. <rgb> is encoded the same as PROJ_FLASH_COLOR.
Add internal drawlinergb function.
Add getclosestcol command, which finds the closest palette index given
getclosestcol <return> <color> <limit> <color> is encoded the same as PROJ_FLASH_COLOR. <limit> is the index of the last palette color that should be considered. Use 255 for the whole palette, 254 to exclude the transparent color, 239 to exclude Duke 3D's fullbrights, etc.
Fix buggy swinging door behavior
Dicking around with inlined actor header functions
Revise r6225
Potential CON performance improvements
Clamp r_maxfps to a minimum of 30 if not 0
Fix yoffset bouncing of face sprites with cstat 128.
r6210 inadvertantly forced orientation bit 2 for internal gametext. Tidy up affected text.
More misc small cleanups. DONT_BUILD.
:(
Misc cleanups, mostly const correctness
Further reorganization of actor_t. BYTEVERSION bumped.
Make r_showfps 2 work a little bit better
Respect r_maxfps in menus and on startup/bonus/end screens
More minor optimizations. Breaks savegames.
Minor optimizations