mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
Fix maps with more than 65535 segs not working correctly
This renders the "quadrant hack" and ZenNode largely useless
This commit is contained in:
parent
58e5473c9e
commit
c8e579618a
2 changed files with 2 additions and 2 deletions
|
@ -3009,7 +3009,7 @@ static inline void P_LoadSubsectors(UINT8 *data)
|
|||
for (i = 0; i < numsubsectors; i++, ss++, ms++)
|
||||
{
|
||||
ss->numlines = SHORT(ms->numsegs);
|
||||
ss->firstline = SHORT(ms->firstseg);
|
||||
ss->firstline = (UINT16)SHORT(ms->firstseg);
|
||||
P_InitializeSubsector(ss);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -587,7 +587,7 @@ typedef struct subsector_s
|
|||
{
|
||||
sector_t *sector;
|
||||
INT16 numlines;
|
||||
UINT16 firstline;
|
||||
UINT32 firstline;
|
||||
struct polyobj_s *polyList; // haleyjd 02/19/06: list of polyobjects
|
||||
size_t validcount;
|
||||
} subsector_t;
|
||||
|
|
Loading…
Reference in a new issue