EDuke32 Changelog Archivio non ufficiale

Build 2373

20 febbraio 2012 · 8 commit di 1 autore · SVN

Build per mese 110 build

File di log originale · 20120220-2373.txt
------------------------------------------------------------------------
r2373 | helixhorned | 2012-02-20 11:54:24 -0800 (Mon, 20 Feb 2012) | 18 lines

engine: make neartag accept a sprite-blacklist function and use it in sector.c.

Internally, the last argument to neartag is now a pointer to a function
  int32_t (*blacklist_sprite_func)(int32_t i),
which is supposed to return 1 if sprite[i] should NOT be considered for hitting.

This is now used in the hard-coded neartag() calls in sector.c, but not in any
way in CON (there's neither a C blacklist function provided, nor is there a
possibility to define one in CON).  There, all sprites with picnums >=1 and <=10
(i.e. the effectors) will be blacklisted.  This remedies problems where such
sprites would get in the way of switches.

Note that a whitelist approach (only consider a predefined set, namely those
picnums which will be checked afterwards) has back-compatibility implications
since people may have used e.g. lotagged window sprites to cover a switch.

Also, the >=1 to <=10 range is [sic] (the static, not dynamic values are used),
since anyone redefining effector picnums is clearly out of their mind.
------------------------------------------------------------------------
r2372 | helixhorned | 2012-02-20 11:53:42 -0800 (Mon, 20 Feb 2012) | 1 line

Make neartag() return void instead of always 0.
------------------------------------------------------------------------
r2371 | helixhorned | 2012-02-20 11:53:23 -0800 (Mon, 20 Feb 2012) | 1 line

polymost.c: More informative failure message for gloadtile_cached().
------------------------------------------------------------------------
r2370 | helixhorned | 2012-02-20 11:53:07 -0800 (Mon, 20 Feb 2012) | 1 line

Use maps selector: draw files found in ZIPs with pal 8.
------------------------------------------------------------------------
r2369 | helixhorned | 2012-02-20 11:52:53 -0800 (Mon, 20 Feb 2012) | 4 lines

cache1d.c: more meaning-preserving transformations, patch up one oob access.

lzwcompress can access one byte after lzwrawbuf[LZWSIZE] when provided with
an uncompleng of LZWSIZE, so we increase that array's size by one.
------------------------------------------------------------------------
r2368 | helixhorned | 2012-02-20 11:52:38 -0800 (Mon, 20 Feb 2012) | 4 lines

cache1d.c: formatting and trivial changes.

Remove dfread and kdfwrite, only leave a recipe how to get their
source from the respective used functions.
------------------------------------------------------------------------
r2367 | helixhorned | 2012-02-20 11:52:22 -0800 (Mon, 20 Feb 2012) | 1 line

cache1d.c: rename three variables, put commented out code at the end.
------------------------------------------------------------------------
r2366 | helixhorned | 2012-02-20 11:52:04 -0800 (Mon, 20 Feb 2012) | 1 line

cache1d.c: allocate internal LZW buffers statically instead of with allocache.
------------------------------------------------------------------------
r2365 | terminx | 2012-02-18 20:07:14 -0800 (Sat, 18 Feb 2012) | 2 lines

Rebuild nedmalloc.dll using newest git sources

------------------------------------------------------------------------
Engine EngineCON

make neartag accept a sprite-blacklist function and use it in sector.c.

Philipp Kutin (Helixhorned) 20 feb 2012, 11:54 UTC−8 r2373

Internally, the last argument to neartag is now a pointer to a function int32_t (*blacklist_sprite_func)(int32_t i), which is supposed to return 1 if sprite[i] should NOT be considered for hitting. This is now used in the hard-coded neartag() calls in sector.c, but not in any way in CON (there's neither a C blacklist function provided, nor is there a possibility to define one in CON). There, all sprites with picnums >=1 and <=10 (i.e. the effectors) will be blacklisted. This remedies problems where such sprites would get in the way of switches. Note that a whitelist approach (only consider a predefined set, namely those picnums which will be checked afterwards) has back-compatibility implications since people may have used e.g. lotagged window sprites to cover a switch. Also, the >=1 to <=10 range is [sic] (the static, not dynamic values are used), since anyone redefining effector picnums is clearly out of their mind.

cache1d.c: more meaning-preserving transformations, patch up one oob access.

Philipp Kutin (Helixhorned) 20 feb 2012, 11:52 UTC−8 r2369

lzwcompress can access one byte after lzwrawbuf[LZWSIZE] when provided with an uncompleng of LZWSIZE, so we increase that array's size by one.

cache1d.c: formatting and trivial changes.

Philipp Kutin (Helixhorned) 20 feb 2012, 11:52 UTC−8 r2368

Remove dfread and kdfwrite, only leave a recipe how to get their source from the respective used functions.