Build 4452
SVN-
General
Fix r_usenewshading 3 visibility/fog for shades >= Numshades-1 (usually 31).
Show details
BUILD_LUNATIC.
SVN handles and Git names are merged into one person.
Fix r_usenewshading 3 visibility/fog for shades >= Numshades-1 (usually 31).
BUILD_LUNATIC.
sdlayer.c: fix grabmouse_low() with DEBUGGINGAIDS!=0 builds. DONT_BUILD.
Fix minor help text formatting issues in shadexfog.lua.
Also, fix saving PALETTE.DAT tables without lognumalphatabs byte. DONT_BUILD.
fix 'screentext' command.
astub.c: clean up [']+[F] menu code, fixing one oob access w/ dyn. entries.
In 'tilefromtexture' DEF token, fix specifying -1 xoffset or yoffset.
game.c: fix last step of p->visibility approaching ud.const_visibility.
Factor out approaching val. to target val by half-difference steps into logapproach().
Fix a case in G_MovePlayers(), where the player sprite's shade is approached toward the ceiling/floor's shade. Before, it could stop at one above or below!
Fix taking ARRAY_SIZE of PlayerSelfObituaries (not PlayerObituaries!)
Also add two static assertions checking that the obituary quotes don't go out of the MAXQUOTES bound. BUILD_LUNATIC.
Fix an unused variable warning with NETCODE=0. DONT_BUILD.
Fix the "fix for flying/jumping monsters getting stuck in water".
In C and Lunatic, split 'jumptoplayer' of enum amoveflags_t / action.MOVFLAGS into 'jumptoplayer_bits' and 'jumptoplayer_only' (see updated Lunatic doc).
fix 'spawn' OSD command when running with -Lopts=strict.
BUILD_LUNATIC.
fix DBG_.testmembread after r4290.
fix 'getincangle'.
Fix crosshair color.
Amend r3822 ("Make deletion of an amb. sound MUSICANDSFX stop its sound again.")
We shouldn't be using its actor[].t_data[8] because that one is used by the sprite rotation-fixing system (which fixes STAT_FX sprites to the positions relative to the pivot, too). Test case source/lunatic/test/delmusicsfx.lua still passes with this modification.
In the C code, rename sprite[].filler to 'blend'.
Also, fix a missed .filler -> g_ambiencePlaying[] rewrite in the editor. In C-CON, 'detail' is kept as alias to C-side (former) .filler / now .blend, but that name is *deprecated*.
factor out polymer_invalidateartmap(), use it in invalidatetile().
This fixes updating the viewscreen in Polymer's ART mapping mode.
engine.c: in calc_bufplc(), cope with negative lwall[] values.
This should fix the crash encountered here: http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__184069 a-c.c also gets a new switch macro, DEBUG_WITH_VALGRIND.
sounds.c: do S_MusicVolume() in S_SoundStartup().
This fixes this initialization issue: http://forums.duke4.net/topic/7144-midi-volume-weirdness/
Fix compilation of C++ build, but not starting up yet.
BUILD_LUNATIC.
Get rid of neartag* global variables. LunaCON: fix 'operate'.
Reincarnate RTS sound functionality together with cleaning up related code.
- Make Win+F* also make play and RTS sound, since modern OS's window managers like to eat Alt-F*. (Some Win+F* may be inaccessible too, but together all 10 should hopefully be covered.) - Fix an issue where keys other than F1-F10 were considered as starting an RTS sound and crashing EDuke32 in the process
Fix USE_OPENGL=0 build... again. DONT_BUILD.
Fix respawn operation with monsters off, rewriting G_OperateRespawns().
BUILD_LUNATIC.
Per-map ART tiles: don't back up or restore reserved tiles.
This prevents a crash and maybe other badnesses when e.g. loading a map with ART tiles, doing something that allocates a reserved tile (such as looking into a viewscreen), then loading another map where the tilesiz* of TILE_VIEWSCR is restored to 0.
fix one error message, make -h/--help display usage.
Actually, right now, any first arg starting with '-' will show the usage.