Build 2738
SVN-
General
This probably fixes the music breakage caused by r2727.
SVN handles and Git names are merged into one person.
This probably fixes the music breakage caused by r2727.
second part of buffer overflow check correction.
This was supposed to go into the last commit, but I did git commit --amend without adding the changes to the index. Now I'm too lazy to sort things out.
correct packet buffer overflow checks.
The GAMESTATE one has to be carried out twice, first on the data from xd3_encode_memory, and then with the compressed data (because it might have increased in size, though this is very unlikely). The MOVE check is similar, though there, failure of the first check implies corrupt memory (which is why we're Bassert'ing that condition). Currently, the overflow on GAMESTATE sending happens when switching to a different map.
Fix a "set but not used warning" in xdelta3.c, revert definition of XD3_ASSERT.
Revert a change in xdelta3.c done in r2683.
fix one stack index, comment on a problem with ffi.C access.
A couple of minor fixes and comments that got accumulated in my tree.
In CON showview, if drawing off-screen, clear the view with pal 0 and bail out.
This fixes the glitches/corruption whereever showview is used from EVENT_DISPLAYROOMS while the scene is actually rendered to a tile instead of the frame buffer, for example because we have a tilted view or "pixel doubling" enabled. Fixing it for real (i.e. so that the showview actually completes) will require more effort.
Disallow high-quality (640x480) tilted screen if MAXYDIM is less than 640.
This fixes the crash on Wii when looking sidewards (e.g. when dying), but makes the tilted view look more pixelated. The problem was that an attempt was made to render onto a 640x640 tile for the rotated view, but the base engine arrays were too small for that.
Fix harmless "cast to pointer from integer of different size" warning with x64.
With engine compiled for V7 limits, refuse loading maps exceeding them.
Also, correct the loadboard() return value checks in premap.c to be aware of a returned -2 ("wrong map version").
Fix some *printf format-char/vararg mismatches on x86_64 in net.c.
Mac OS X: Add correct default values for 'gameexecutable' cfg string so that the Mapster32 test feature works with .app bundles.
Note: You may encounter a crash if you try to test your map and Mapster32 is running fullscreen.
Fix warnings in net.c and xdelta3.
Minor formatting fix
Fix the previous/next weapon events
With Clang, compile in GNU89 mode and fix clang detection in the Makefiles.
The default C99 mode is giving us linking errors from xdelta3.
Fix one ptr size mismatch and one format letter/arg mismatch on x86_64.
Fix cheats giving inventory items and their events.
Fix A_CheckEnemyTile() returning 1 for "fixed" sprites (see r1913).
Those sprites are usually decorative, and certainly not enemies!
Fix building xdelta3.o
WIP multiplayer changes, still completely broken.
Add xdelta3, required for some broken multiplayer updates I plan on committing later
Fix EVENT_CHECKTOUCHDAMAGE (the change to how events handle RETURN broke it)
Fix breakage of EVENT_WEAPKEYx after r2656
"Band-aid" fix for the issue with EDuke32 and Mapster32 visually locking up but continuing to run and play sounds after alt+tabbing away for a few seconds on Windows Vista/7. This may screw something else up, so please test thoroughly.
This should hopefully fix the disaster with events caused by my last couple of commits ;)
Fix a potential issue with nested event execution
Another one line DynamicTileMap[x] -> DYNAMICTILEMAP(x) change from Helix that got obliterated during svn change merging. Fixing this changes nothing in builds with DYNTILEREMAP_ENABLE defined, so this change isn't meaningful to anyone who isn't recompiling the game to work on a low memory device or something of that nature.
1 line fix for a change that accidentally got reverted when merging newer svn updates into an older local branch