Skip to content

Commit

Permalink
Fixed: Minor issues with tracking players entering/leaving the void.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Aug 31, 2009
1 parent 956639f commit 6262628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion doomsday/engine/portable/src/p_maputil.c
Expand Up @@ -749,7 +749,9 @@ void P_MobjLink(mobj_t* mo, byte flags)
player->inVoid = true;
if(R_IsPointInSector2(player->mo->pos[VX],
player->mo->pos[VY],
player->mo->subsector->sector))
player->mo->subsector->sector) &&
(player->mo->pos[VZ] < player->mo->subsector->sector->SP_ceilvisheight + 4 &&
player->mo->pos[VZ] > player->mo->subsector->sector->SP_floorvisheight + 4))
player->inVoid = false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/r_world.c
Expand Up @@ -1539,8 +1539,8 @@ void R_SetupMap(int mode, int flags)

//// \fixme $nplanes
if(ssec &&
ddpl->mo->pos[VZ] > ssec->sector->SP_floorheight + 4 &&
ddpl->mo->pos[VZ] < ssec->sector->SP_ceilheight - 4)
ddpl->mo->pos[VZ] > ssec->sector->SP_floorvisheight + 4 &&
ddpl->mo->pos[VZ] < ssec->sector->SP_ceilvisheight - 4)
ddpl->inVoid = false;
}
}
Expand Down

0 comments on commit 6262628

Please sign in to comment.