SW: Fix warning: array subscript is above array bounds [-Warray-bounds]

git-svn-id: https://svn.eduke32.com/eduke32@5228 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-05-19 22:10:37 +00:00
parent 7f2a6a8404
commit d8ee28b89d
2 changed files with 2 additions and 2 deletions

View file

@ -1424,7 +1424,7 @@ MoreKeys(short searchstat, short searchwall, short searchsector, short pointhigh
if (KEY_PRESSED(KEYSC_RALT + 128) && KEY_PRESSED(KEYSC_RCTRL + 128)) if (KEY_PRESSED(KEYSC_RALT) && KEY_PRESSED(KEYSC_RCTRL))
{ {
if (KEY_PRESSED(KEYSC_KPMINUS)) if (KEY_PRESSED(KEYSC_KPMINUS))
{ {

View file

@ -1253,7 +1253,7 @@ void RipperHatch(short Weapon)
short rip_ang[MAX_RIPPERS]; short rip_ang[MAX_RIPPERS];
rip_ang[0] = RANDOM_P2(2048); rip_ang[0] = RANDOM_P2(2048);
rip_ang[1] = NORM_ANGLE(rip_ang[0] + 1024 + (RANDOM_P2(512) - 256)); // rip_ang[1] = NORM_ANGLE(rip_ang[0] + 1024 + (RANDOM_P2(512) - 256));
for (i = 0; i < MAX_RIPPERS; i++) for (i = 0; i < MAX_RIPPERS; i++)
{ {