mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 14:51:40 +00:00
Fix crash for maps with vertices above 32768
This commit is contained in:
parent
08be3607ce
commit
74b81bc65a
2 changed files with 2 additions and 7 deletions
|
@ -487,7 +487,7 @@ struct FLevel
|
|||
IntSector *GetBackSector(const IntSideDef *side);
|
||||
IntSector *GetSectorFromSubSector(const MapSubsectorEx *sub);
|
||||
MapSubsectorEx *PointInSubSector(const int x, const int y);
|
||||
FloatVertex GetSegVertex(int index);
|
||||
FloatVertex GetSegVertex(unsigned int index);
|
||||
|
||||
int FindFirstSectorFromTag(int tag);
|
||||
unsigned FindFirstLineId(int lineId);
|
||||
|
|
|
@ -205,13 +205,8 @@ MapSubsectorEx *FLevel::PointInSubSector(const int x, const int y)
|
|||
return &GLSubsectors[nodenum & ~NFX_SUBSECTOR];
|
||||
}
|
||||
|
||||
FloatVertex FLevel::GetSegVertex(int index)
|
||||
FloatVertex FLevel::GetSegVertex(unsigned int index)
|
||||
{
|
||||
if (index & 0x8000)
|
||||
{
|
||||
index = (index & 0x7FFF) + NumGLVertices;
|
||||
}
|
||||
|
||||
FloatVertex v;
|
||||
v.x = F(GLVertices[index].x);
|
||||
v.y = F(GLVertices[index].y);
|
||||
|
|
Loading…
Reference in a new issue