mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Use CSTAT_SPRITE_ALIGNMENT_* enums in a couple places
git-svn-id: https://svn.eduke32.com/eduke32@6811 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6acd592ae2
commit
851c7755c2
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue