diff --git a/src/level/doomdata.h b/src/level/doomdata.h index a1adc19..725611c 100644 --- a/src/level/doomdata.h +++ b/src/level/doomdata.h @@ -454,7 +454,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); vec3 GetLightProbePosition(int index); diff --git a/src/level/level_light.cpp b/src/level/level_light.cpp index 02d8e9a..9e1326d 100644 --- a/src/level/level_light.cpp +++ b/src/level/level_light.cpp @@ -226,13 +226,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);