From fd5ee7c5611d407e3da9de2d8878ab385f039378 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 6 Apr 2019 06:59:11 +0000 Subject: [PATCH] Fix dumbass problem with r7463 that screwed up projectiles git-svn-id: https://svn.eduke32.com/eduke32@7490 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index 121b2bfbf..8d59329af 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1094,9 +1094,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect, if (!curspr && clipsectcnt != 1 && inside(pos->x, pos->y, dasect) == 1) break; else if (clipyou) { - int16_t objtype = int16_t(!curspr ? - j + 32768 : - curspr - (uspritetype *)sprite) + 49152; + int16_t const objtype = curspr ? (int16_t)(curspr - (uspritetype *)sprite) + 49152 : j + 32768; //Add 2 boxes at endpoints int32_t bsz = walldist; if (diff.x < 0) bsz = -bsz;