EDuke32 Changelog Archivio non ufficiale

Build 2381

24 febbraio 2012 · 2 commit di 1 autore · SVN

Build per mese 138 build

  1. gen

  2. feb

  3. mar

  4. apr

  5. mag

  6. giu

  7. lug

  8. ago

  9. set

  10. ott

  11. nov

  12. dic

File di log originale · 20120224-2381.txt
------------------------------------------------------------------------
r2381 | helixhorned | 2012-02-24 11:51:54 -0800 (Fri, 24 Feb 2012) | 9 lines

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.
------------------------------------------------------------------------
r2380 | helixhorned | 2012-02-24 11:51:37 -0800 (Fri, 24 Feb 2012) | 9 lines

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!
------------------------------------------------------------------------
r2379 | helixhorned | 2012-02-21 11:33:33 -0800 (Tue, 21 Feb 2012) | 3 lines

Pull the 'for (' ... ')' out of the TRAVERSE_{CONNECT,SPRITE_*} macros.

This plays more nicely with automatic formatters.  Also indent accordingly.
------------------------------------------------------------------------
EngineCON

Do bound check for "quick" sector/wall accesses from CON, i.e. in getvarvar.

Philipp Kutin (Helixhorned) 24 feb 2012, 11:51 UTC−8 r2381

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.

Fix

Fix user quotes colored with a 2-digit number being wrongly x-aligned.

Philipp Kutin (Helixhorned) 24 feb 2012, 11:51 UTC−8 r2380

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!

Già presente nella build 2379

Pull the 'for (' ... ')' out of the TRAVERSE_{CONNECT,SPRITE_*} macros.

Philipp Kutin (Helixhorned) 21 feb 2012, 11:33 UTC−8 r2379

This plays more nicely with automatic formatters. Also indent accordingly.