Giugno 2012
-
don't attempt to draw sprite with void tile, preventing div-by-0s later
-
draw a wall blue if its squared length exceeds INT_MAX (not UINT_MAX)
-
Generale
Fix a div by zero in polymost_internal_nonparallaxed.
-
fix a div by zero when drawing tile info for void tile in 3D mode.
Mostra dettagli
This was exposed by Clang with -ftrapv, which apparently also traps those.
-
Generale
Lunatic translator: fix dangling else and add a test file, tweak warnings
-
Generale
build/Makefile: Always compile a-c.o with -O2 and without -fcatch-undefined-behavior
Mostra dettagli
This is to not slow down the core drawing functions too much in debugging builds and mimics the way things are on x86.
-
Generale
a.m32: new state "collect_ceilsky_sectors" collecting parallaxed ceilings.
-
disallow joining non-adjacent sectors when expert mode is disabled.
-
Generale
Factor out r2726' kopen4load checks into testkopen, closing opened files.
-
warn on out-of-range hex literals and ignored redefines with different values
-
Generale
CON parser/runtime: two bound tweaks, defer setting insptr in (load)actor.
-
Generale
Lunatic translator: define, include, fix "music" parsing, ...
-
take a stab at semantic actions; tweaks
-
actors
-
in event interface, pass actor, player, dist.
-
Generale
gameexec.c: factor out stuff, make code more readable overall.
-
don't attempt drawing sprites with (cstat&48) == 48 that aren't voxels.
Mostra dettagli
Bang! One more invalid internals exposure squashed. Maybe one day we'll be able to call EDuke32 "stable"... Actually the offending sprite IS drawn as face sprite with shade 32 and xrepeat and yrepeat 255 for the convenience of the CON coder who will have to debug it.
-
Generale
Fix MSVC build error caused by the use of a C99 feature (that should have been added to the compiler about 13 years ago)
-
Generale
Silence "number greater than INT32_MAX converted to a negative one" warning.
Mostra dettagli
Literals written out as if they were unsigned and having the highest-order bit set are all too ubiquitous, like hitscan masks for example.
-
Generale
TROR/classic: same fix as r2739, intersecting case.
-
Generale
engine.c: cleanup / readability tweaks
-
Generale
TROR/classic: fix a certain class of underdraw glitches.
Mostra dettagli
Those were happening when wall drawing in an upper/lower layer "closed" too much of the "curtain" (umost/dmost) for subsequent drawing in that portal. Example: looking down the sewer manhole at the beginning of Retaliation will now render without HOM.
-
Generale
This probably fixes the music breakage caused by r2727.
-
do strtok on a duplicated string containing the address in Net_Connect().
Mostra dettagli
Also, - don't strip const when passing the char ptr to it and a couple more instances in game.c - use g_netPort when -connect parameter doesn't have a port suffix (":XXXX"), so that e.g. eduke32 -port 1700 -connect localhost is the same as eduke32 -connect localhost:1700 (-port must come before -connect, unfortunately.)
-
second part of buffer overflow check correction.
Mostra dettagli
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.
Mostra dettagli
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.
-
remove (char *) casts where they amount to no-ops.
-
Generale
Fix a "set but not used warning" in xdelta3.c, revert definition of XD3_ASSERT.
-
Generale
Revert a change in xdelta3.c done in r2683.
-
eliminate ptr->byte idx conversion of action/move/ai in t_data.
Mostra dettagli
These are element indices for a while now. Also eliminate some dead code afterwards.
-
Generale
Bump BYTEVERSION, correct actor_t size on x64, add assert(sizeof(actor_t)==128).
Mostra dettagli
r2727 made old savegames incompatible, as an array with MAXVOLUMES*MAXLEVELS is saved in Gv_WriteSave().
-
Generale
Prevent the reserved cheats from displaying a finished time and from clobbering personal map time records.
-
Generale
Massive menu input control revamp/cleanup/factor. (added: input.[ch])
Mostra dettagli
New Wii control defaults for the Wii Remote + Nunchuk and the Classic Controller. This includes new code added just so that the Home key brings up the menu in-game, reducing the need for a USB keyboard. On the technical side, raw joystick access (comparable to what is available for keyboard and mouse) is now present in jmact, on the game side. (added: joystick.[ch]) Using this new raw joystick access, I replaced tueidj's hack to map A and B to LMB/RMB and D-Pad Up/Down to the scrollwheel. I made the menus more friendly to mouse and joystick browsing by adding and unifying checks and clears for various buttons and gamefuncs. In fact, the majority of the time spent on this commit was tracking down problems that appeared with the factoring and trying to understand the menu system and the way input checks are precariously executed. In addition, "Press any key or button to continue" now truly means what it says. As a result of incorporating proper raw access into control.c instead of it directly accessing the implementaiton, the program *may* no longer be affected by joystick input when it is out of focus. This follows the pattern set by the mouse, and I think this is a positive change. A small bonus: In the classic/old keyboard preset, the key for Show_Console has been changed from '`' to 'C' because '`' is taken by Quick_Kick.
-
Generale
Bump MAXLEVELS to 64, per user request.
-
Generale
The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor.
Mostra dettagli
NAM and Napalm can now share their con, def, and rts files if the one for their respective game is not present because the con and rts files are identical. Also, decapitalize two string literals missed in r2540.
-
Generale
Incorporate some use of Bfflush(NULL) in hopes to alleviate Wii configuration saving concerns.
-
pack actor/move parameters into t_data, which is enlarged to 14 elements.
Mostra dettagli
(LUNATIC build only.) Also, a minor problem is identified. sizeof(actor_t) is 124 on 64-bit platforms, while the expected size is 128 bytes. This needs to be corrected whenever the next savegame version bump happens.
-
Generale
In G_GameExit, rename arg 't' to 'msg' for (slightly) easier grepping of t_data etc.
-
one const char * --> char *, since we alloc/free it.
-
Generale
Rename LUNATIC_ENABLE macro to just LUNATIC.
-
Generale
Replace a couple uses of S_IREAD with our platform-aware BS_IREAD
-
Generale
Replace a few "#ifdef GEKKO" statements added for the Wii port with "#ifdef HAVE_VORBIS" like they should have been in the first place. Allows jaudiolib to build without Ogg support on platforms other than the Wii if desired.
-
Generale
For me (helixhorned), do SDL_WarpMouse even in debugging builds again.
Mostra dettagli
This introduces a Makefile variable EDUKE32_MY_DEVELOPER_ID, which is expected to come from the environment, so that minor disagreements/ preferences can be handled -- don't let it go overboard though! -- to keep the working directory clean of stuff that one doesn't actually work on. My ID is 805120924, i.e. "helix".
-
Generale
M32 auto-aligner: calculate panning for non-firstwall-aligned ceilings/floors.
Mostra dettagli
Also, print failure messages on some occasions.
-
keep the temp sector on some more occasions that don't delete them.
-
Part 1 of ceiling/floor auto-alignment functionality.
Mostra dettagli
Usage is from 3D mode only. When a sector (or wall) is committed to the clipboard, it (or the wall's sector) is saved, and is subsequently used when auto-aligning [;-ENTER] another sector's ceiling or floor against the reference one's. This temp. sector is reset on any structurally modifying operation except setting first walls; also, aligning extended ceilings or floors is impossible as they use .*xrepeat internally. The auto-alignment does not change picnums (this can be accomplished with the ['+ENTER] combination), but copies the orientation bits 2^{2..6} to the alignee. Afterwards, if the reference is relative-aligned, it tweaks them, so that every case where the two firstwalls are either parallel or perpendi- cular is handled correctly. It does not yet calculate the panning values.
-
Generale
Throw a commented #define DEBUG_TEXTURE_NAMES into glbuild.h.
Mostra dettagli
This is so that people know where to enable it. One day, all these debugging switches ought to go into the Makefiles in one form or another.
-
in textured 2D mode, make floor flipping [F] work.
-
In textured 2D mode, allow setting floor relativity [R].
Mostra dettagli
Also factor out the code (2x) setting the alignment bits for sprites.
-
more descriptive message when flipping stuff [F], reverse w/ SHIFT.