Subversion Repositories eduke32

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
2384 3529d 22h hendricks266 /polymer/ add Mac OS X .app bundles to repository  
2383 3529d 22h hendricks266 /polymer/ Add the source .psd files for the EDuke32 logo and program icon to the repository. Though they are .psd, they are effectively vector because they utilize paths.  
2382 3529d 22h hendricks266 /polymer/ cosmetic:
* update Windows icons to include 64x64, 128x128, and 256x256 sizes
* add "orange_icon.ico" (unused; classic orange color of logo)
* remove unused 32x32 "build_icon.bmp" file
 
2381 3530d 5h helixhorned /polymer/ Do bound check for "quick" sector/wall accesses from CON, i.e. in getvarvar.

This was causing oob sector accesses with code like this:
getwall[hitwall].nextsector temp
ifvarvare sector[temp].floorz sector[temp].ceilingz setvar tempb 1
(from DT's HYPERCORE).

Also validate quote indices passed to CON's quote and userquote commands at
runtime.
 
2380 3530d 5h helixhorned /polymer/ Fix user quotes colored with a 2-digit number being wrongly x-aligned.

Such game text was shown starting from about the center of the screen.
The reason for the bug was this code:
t += 1 + isdigit(*(t+2));
The sequence points here are at the beginning and end of this assignment
expression, and the updating of t may happen anywhere between these (C99
6.5.16 #3). Please don't write such code. When in doubt, and assignment
and reference to the same object should be split!
 
2379 3533d 6h helixhorned /polymer/ Pull the 'for (' ... ')' out of the TRAVERSE_{CONNECT,SPRITE_*} macros.

This plays more nicely with automatic formatters. Also indent accordingly.
 
2378 3533d 6h helixhorned /polymer/ QUOTE_NVG_OFF-p->heat_on --> QUOTE_NVG_OFF-!!p->heat_on in sector.c.

Because: 1) It used to be like this; 2) guard against bad CON input.
 
2377 3533d 6h helixhorned /polymer/ Fix potential (certain?) oob access with ST28/SE21.

Encountered with Scent.map. Since the SE21 are deleted after they have
been used, the search for them in the ST28 code in sector.c may come up
empty, in which case sector[-1] would be accessed.
 
2376 3533d 7h helixhorned /polymer/ Fix sprites with picnums >= MAXSPRITES not drawing in classic.

This was discovered because viewscreens (TILE_VIEWSCR) ceased being drawn
with the MAXTILES increase (reported by Hank, who also did the bisect).
 
2375 3534d 4h helixhorned /polymer/ Uncomment "CrosshairColor" parsing code in config.c.

Untested, but LeoD says it works.
 
2374 3534d 4h helixhorned /polymer/ Define Batoi/Batol to strtol(...) in compat.h and use these when necessary.

That is, everyplace a user input is to be converted. The only remaining
instance of atoi() is now atoi(s_buildDate).
 
2373 3534d 5h helixhorned /polymer/ 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.
 
2372 3534d 5h helixhorned /polymer/ Make neartag() return void instead of always 0.  
2371 3534d 5h helixhorned /polymer/ polymost.c: More informative failure message for gloadtile_cached().  
2370 3534d 5h helixhorned /polymer/ Use maps selector: draw files found in ZIPs with pal 8.  
2369 3534d 5h helixhorned /polymer/ 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.
 
2368 3534d 5h helixhorned /polymer/ cache1d.c: formatting and trivial changes.

Remove dfread and kdfwrite, only leave a recipe how to get their
source from the respective used functions.
 
2367 3534d 5h helixhorned /polymer/ cache1d.c: rename three variables, put commented out code at the end.  
2366 3534d 5h helixhorned /polymer/ cache1d.c: allocate internal LZW buffers statically instead of with allocache.  
2365 3535d 21h terminx /polymer/ Rebuild nedmalloc.dll using newest git sources  

Show All