Check for sector special flag instead of special number

This commit is contained in:
spherallic 2022-09-16 23:05:24 +02:00
parent b7dd3ac4bf
commit 2664fc700a

View file

@ -12602,7 +12602,7 @@ void P_PlayerAfterThink(player_t *player)
else
zdist = mo->z - fan->z;
if ((fan->type != MT_FAN && !P_PlayerTouchingSectorSpecial(player, 4, 5))
if ((fan->type != MT_FAN && !P_PlayerTouchingSectorSpecialFlag(player, SSF_FAN))
|| (fan->type == MT_FAN && (abs(mo->x - fan->x) > fan->radius || abs(mo->y - fan->y) > fan->radius || zdist > (fan->health << FRACBITS))))
{
P_SetTarget(&player->mo->tracer, NULL);