mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Fixed compile error and placed the #undefs for xsign and ysign in more logical places.
This commit is contained in:
parent
19b186e52e
commit
c5ff41d6a6
1 changed files with 2 additions and 2 deletions
|
@ -2878,6 +2878,8 @@ static void P_DoTeeter(player_t *player)
|
|||
#define ysign ((i & 2) ? 1 : -1) // 0 -> 1 | 1 -> 1 | 2 -> -1 | 3 -> -1
|
||||
fixed_t checkx = player->mo->x + (xsign*FixedMul(5*FRACUNIT, player->mo->scale));
|
||||
fixed_t checky = player->mo->y + (ysign*FixedMul(5*FRACUNIT, player->mo->scale));
|
||||
#undef xsign
|
||||
#undef ysign
|
||||
|
||||
sec = R_PointInSubsector(checkx, checky)->sector;
|
||||
|
||||
|
@ -2891,8 +2893,6 @@ static void P_DoTeeter(player_t *player)
|
|||
#endif
|
||||
highestceilingheight = (ceilingheight > highestceilingheight) ? ceilingheight : highestceilingheight;
|
||||
lowestfloorheight = (floorheight < lowestfloorheight) ? floorheight : lowestfloorheight;
|
||||
#undef xsign
|
||||
#undef ysign
|
||||
|
||||
if (!(sec->ffloors))
|
||||
continue; // move on to the next subsector
|
||||
|
|
Loading…
Reference in a new issue