Skip to content

Commit

Permalink
Added PO_GetNumForDegen()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 24, 2003
1 parent e0c6dd2 commit bef0263
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doomsday/Src/p_polyob.c
Expand Up @@ -514,3 +514,22 @@ static boolean CheckMobjBlocking(seg_t *seg, polyobj_t *po)
}
return blocked;
}

//===========================================================================
// PO_GetNumForDegen
// Returns the index of the polyobj that owns the degenmobj.
// Returns -1 if nothing is found.
//===========================================================================
int PO_GetNumForDegen(void *degenMobj)
{
int i;

for(i = 0; i < po_NumPolyobjs; i++)
{
if(&PO_PTR(i)->startSpot == degenMobj)
{
return i;
}
}
return -1;
}

0 comments on commit bef0263

Please sign in to comment.