mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- added GC handling for all backend pointers in the map data.
GC is not active yet!
This commit is contained in:
parent
db240ea2b0
commit
0dd756fa32
13 changed files with 45 additions and 28 deletions
|
@ -526,3 +526,18 @@ void setWallSectors()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
void MarkMap()
|
||||
{
|
||||
for (auto& sect : sectors())
|
||||
{
|
||||
GC::Mark(sect.firstEntry);
|
||||
GC::Mark(sect.lastEntry);
|
||||
if (isDukeLike()) GC::Mark(sect.hitagactor);
|
||||
else if (isBlood())
|
||||
{
|
||||
GC::Mark(sect.upperLink);
|
||||
GC::Mark(sect.lowerLink);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue