Novembre 2012
-
Generale
build.lua: provide simplistic "readdefs()", use in foreachmap.lua.
Mostra dettagli
So that symbolic tile names can be used when searching maps.
-
Generale
Remove many redundant (int16_t) casts and one now incorrect one.
Mostra dettagli
The redundant ones are in code like this: s->cstat = (int16_t)32768; Because the value is eventually converted to the type of "s->cstat", any casts to integral types having at least as many bits are no-ops, signedness being irrelevant due to (probably any two's complement arch targeting compiler's) bit-pattern preserving semantics of these conversions. The now incorrect one is: if (lotag == (int16_t) 65535), "int32_t lotag" being read from a wall or sprite struct directly earlier. Now, with these members being unsigned, and (int16_t)65535 equalling -1, the check always fails. The correction fixes normal switches having such a lotag ending the level immediately. In short: integer casts before assignments are unnecessary, those in reads highly relevant!
-
Generale
Correct arithmetic comparisons of lo/hitags in actors.c.
Mostra dettagli
Rewriting them in the obvious way, i.e. by casting the expression to int16_t first. (That is, this commit is the reverse of r3174, but with casts applied.) This fixes at least one regression: a FIREEXT with a hitag of 0 should not be linked with same- (that is, zero-) tagged SEENINEs or OOZFILTERs. Mind the corner cases!
-
Generale
Fix bound keys' commands being truncated in settings.cfg, control* cleanup.
Mostra dettagli
- provide functions instead of messing with CONTROL_*Binds directly - comment out a few more unused functions - make clear what memory (alloc'd or const char *) 'keybind' members use - for keys with no name, use "<?>"
-
Generale
Fix a keyboard scancode oversight I introduced with my changes last night, apparently caused crashes
-
Generale
Engine cleanup: factor out code getting bounds of sprites.
-
Generale
Clean up base engine functions: tighten scope of locals declarations.
-
Generale
Clean up engine code by factoring repeated 3-liners into spriteheightofs().
Mostra dettagli
This function also changed: it doesn't handle floor-aligned sprites now, and the z offset is returned instead of set by pointer.
-
Generale
A couple of meaning-preserving rewrites of picanm[]-touching code.
-
fix cycling picnum in 3D mode.
Mostra dettagli
Using non-keypad [-]/[+] or LMB + mousewheel, it was broken when a void tile was in between.
-
Generale
Clean up picanm[] by making its elements values of struct type picanm_t.
Mostra dettagli
The size of that struct is currently 4, and its layout almost the same as what is read in with loadpics(). The number of tiles in an animation is bumped to 256, so that the max. tile difference in DEF's animtilerange is 255. (There's no way to have such animations from ART.)
-
update BUILD types with signed->unsigned changes of *stat.
-
Generale
Further minor MACT cleanups
-
Generale
Replace a few one line MACT mouse functions with macros that do the same thing
-
Generale
Remove useless CONTROL_UserInputCleared. It was useless in the literal sense, e.g not actually used anywhere. :p
-
Generale
Change key bindings to use dynamic allocation and remove the previous limit of 128 characters per key bind
-
Generale
Minor cleanups in MACT control.c
-
Generale
Rename a few variables we've added to MACT over the years to be more consistent with the rest of its naming conventions
-
Generale
Remove the xdelta3 files from the VS2010 project, too
-
Generale
Remove xdelta3 since it doesn't fit in with our current networking plans anymore
-
Generale
Add "ulotag" and "uhitag" to get/setactor/wall/sector, which exposes the tags unsigned, without the typecast to int16_t. This might be useful to someone.
-
Generale
Remove our old eduke32.vcproj as it hasn't been updated since whenever I switched to VS2010
-
Generale
Make GCC *printf_nowarn behavior conditional on compiling as C++
-
make lotag/hitag getters return signed values, as per agreement on IRC.
Mostra dettagli
This means that the internal change done to these sprite members in r3159 is hidden from CON for backward-compatibility purposes. Note that .cstat and .{ceiling,floor}stat aren't touched, and will return unsigned values to CON.
-
Generale
Probably fix the zoom crash encountered with Mapster32 and CBP8.
Mostra dettagli
-
Generale
Minor loadpics() cleanups, don't expose filegrp[] from cache1d.c.
-
Generale
picanm[]-cleanup pt1: hide code using animateoffs() behind macro DO_TILE_ANIM.
-
Generale
foreachmap.lua: add possibility of running code per s/w/s match with ':' shortcut
Mostra dettagli
Also, add a missing "pragma pack(pop)" to build.lua.
-
Generale
Add nedmalloc.h to the VS2010 project files
-
Fix clipboard tile display in 3D mode.
-
Generale
demo.c: time G_DoMoveThings() using a double instead of an int32_t.
Mostra dettagli
I think this may fix some negative "non-profiled overhead" that I have been seeing.
-
Generale
Bump BYTEVERSION.
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
-
Generale
Address crash when model skins have invalid file names. Affected surfaces will not be drawn, but FPS will plummet as mdloadskin() is called repeatedly. A more optimal solution would either flag the surface as invalid (so the renderers skip it) or reject the entire model when defs are loaded.
-
Generale
Tools updates:
Mostra dettagli
- Eliminate use of the C++ standard library from arttool. I improved some of the program's workings but it continues to corrupt my art files in certain circumstances. (Note: Not a regression; it happens with previous revisions.) - Construct "make utils" for the game side following the pattern of the engine. - Move ivfrate to this new distinction. - Minor Makefile cleanup and tweaks, mainly to facilitate CLANG=1 and to formalize text output in special cases.