From 39f00bcb351fcaeabda6e8c95a3a1cea44ee7101 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 May 2016 04:46:41 +0000 Subject: [PATCH] KenBuild: Address "warning: shifting a negative signed value is undefined [-Wshift-negative-value]". git-svn-id: https://svn.eduke32.com/eduke32@5741 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/testgame/src/game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/testgame/src/game.c b/polymer/eduke32/source/testgame/src/game.c index 81805aef9..d4095b74c 100644 --- a/polymer/eduke32/source/testgame/src/game.c +++ b/polymer/eduke32/source/testgame/src/game.c @@ -2547,7 +2547,7 @@ void statuslistcode(void) day = sintable[sprite[i].ang]*l; osectnum = sprite[i].sectnum; - movestat = movesprite((short)i,dax,day,0L,-8L<<8,-8L<<8,CLIPMASK0); + movestat = movesprite((short)i,dax,day,0L,-(8L<<8),-(8L<<8),CLIPMASK0); sprite[i].z = globloz; if ((sprite[i].sectnum != osectnum) && (sector[sprite[i].sectnum].lotag == 10)) { @@ -3345,7 +3345,7 @@ void processinput(short snum) goalz = globloz-(8<<8); if (pos[snum].z >= goalz-(2<<8)) { - clipmove(&pos[snum],&cursectnum[snum],-TICSPERFRAME<<14,-TICSPERFRAME<<14,128L,4<<8,4<<8,CLIPMASK0); + clipmove(&pos[snum],&cursectnum[snum],-(TICSPERFRAME<<14),-(TICSPERFRAME<<14),128L,4<<8,4<<8,CLIPMASK0); if (slimesoundcnt[snum] >= 0) { @@ -4380,7 +4380,7 @@ void fakedomovethings(void) { goalz = globloz-(8<<8); if (my.z >= goalz-(2<<8)) - clipmove(&my,&mycursectnum,-TICSPERFRAME<<14,-TICSPERFRAME<<14,128L,4<<8,4<<8,CLIPMASK0); + clipmove(&my,&mycursectnum,-(TICSPERFRAME<<14),-(TICSPERFRAME<<14),128L,4<<8,4<<8,CLIPMASK0); } if (goalz < globhiz+(16<<8)) //ceiling&floor too close goalz = ((globloz+globhiz)>>1);