mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix SPRITES_OF_SECT_SAFE macro. Oops!
git-svn-id: https://svn.eduke32.com/eduke32@3685 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bac1a3ff63
commit
6be448c534
2 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,7 @@ enum rendmode_t {
|
|||
#define SPRITES_OF_SECT(Sectnum, Iter) Iter=headspritesect[Sectnum]; Iter>=0; Iter=nextspritesect[Iter]
|
||||
// ... in which case this iterator may be used:
|
||||
#define SPRITES_OF_SECT_SAFE(Sectnum, Iter, Next) Iter=headspritesect[Sectnum]; \
|
||||
Iter>=0 && (Next=nextspritestat[Iter], 1); Iter=Next
|
||||
Iter>=0 && (Next=nextspritesect[Iter], 1); Iter=Next
|
||||
|
||||
#define CLEARLINES2D(Startline, Numlines, Color) \
|
||||
clearbuf((char *)(frameplace + ((Startline)*bytesperline)), (bytesperline*(Numlines))>>2, (Color))
|
||||
|
|
|
@ -1154,6 +1154,7 @@ int32_t A_ShootWithZvel(int32_t i, int32_t atwith, int32_t override_zvel)
|
|||
sa += 64 - (krand()&127);
|
||||
if (p < 0) sa += 1024;
|
||||
zvel = 1024-(krand()&2047);
|
||||
// fall-through
|
||||
case KNEE__STATIC:
|
||||
if (atwith == KNEE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue