From 851c7755c2398b59bb897a7de203c0fe9ce142be Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 6 Apr 2018 01:42:38 +0000 Subject: [PATCH] Use CSTAT_SPRITE_ALIGNMENT_* enums in a couple places git-svn-id: https://svn.eduke32.com/eduke32@6811 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index d1608a634..b93028797 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1076,9 +1076,9 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, #endif x1 = spr->x; y1 = spr->y; - switch (cstat&48) + switch (cstat & (CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_ALIGNMENT_FLOOR)) { - case 0: + case CSTAT_SPRITE_ALIGNMENT_FACING: if (x1 >= xmin && x1 <= xmax && y1 >= ymin && y1 <= ymax) { const int32_t daz = spr->z + spriteheightofs(j, &k, 1); @@ -1094,7 +1094,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, } break; - case 16: + case CSTAT_SPRITE_ALIGNMENT_WALL: { const int32_t daz = spr->z + spriteheightofs(j, &k, 1); @@ -1127,7 +1127,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, break; } - case 32: + case CSTAT_SPRITE_ALIGNMENT_FLOOR: { if (pos->z > spr->z - flordist && pos->z < spr->z + ceildist) {