From d8ee28b89d9e42b5b44d271654f6a60e596adfa6 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 19 May 2015 22:10:37 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/sw/src/jnstub.c | 2 +- polymer/eduke32/source/sw/src/ripper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/sw/src/jnstub.c b/polymer/eduke32/source/sw/src/jnstub.c index 54ff45fb4..bac6ab4b1 100644 --- a/polymer/eduke32/source/sw/src/jnstub.c +++ b/polymer/eduke32/source/sw/src/jnstub.c @@ -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)) { diff --git a/polymer/eduke32/source/sw/src/ripper.c b/polymer/eduke32/source/sw/src/ripper.c index fd70bdc03..823e32e14 100644 --- a/polymer/eduke32/source/sw/src/ripper.c +++ b/polymer/eduke32/source/sw/src/ripper.c @@ -1253,7 +1253,7 @@ void RipperHatch(short Weapon) short rip_ang[MAX_RIPPERS]; 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++) {