Fix dumbass problem with r7463 that screwed up projectiles

git-svn-id: https://svn.eduke32.com/eduke32@7490 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-06 06:59:11 +00:00 committed by Christoph Oelckers
parent 91d8953420
commit fd5ee7c561

View file

@ -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; if (!curspr && clipsectcnt != 1 && inside(pos->x, pos->y, dasect) == 1) break;
else if (clipyou) else if (clipyou)
{ {
int16_t objtype = int16_t(!curspr ? int16_t const objtype = curspr ? (int16_t)(curspr - (uspritetype *)sprite) + 49152 : j + 32768;
j + 32768 :
curspr - (uspritetype *)sprite) + 49152;
//Add 2 boxes at endpoints //Add 2 boxes at endpoints
int32_t bsz = walldist; if (diff.x < 0) bsz = -bsz; int32_t bsz = walldist; if (diff.x < 0) bsz = -bsz;