- fixed: P_PointInSectorBuggy must handle the single-subsector special case.

This commit is contained in:
Christoph Oelckers 2016-03-13 16:57:02 +01:00
parent 51ab60178a
commit 448e66f19b

View file

@ -1980,6 +1980,10 @@ int P_VanillaPointOnDivlineSide(fixed_t x, fixed_t y, const divline_t* line)
sector_t *P_PointInSectorBuggy(fixed_t x, fixed_t y)
{
// single subsector is a special case
if (numgamenodes == 0)
return gamesubsectors->sector;
node_t *node = gamenodes + numgamenodes - 1;
do