- sector splitting hack for SW $bath.map.

This commit is contained in:
Christoph Oelckers 2021-05-23 17:06:47 +02:00
parent 572f45ca53
commit 8aed9063f8
4 changed files with 11 additions and 0 deletions

View file

@ -360,6 +360,8 @@ static int32_t LoadMapHack(const char *filename)
void G_LoadMapHack(const char* filename, const unsigned char* md4)
{
hw_ClearSplitSector();
for (auto& p : blockingpairs) p.Clear();
FString internal = "engine/compatibility/";
for (int j = 0; j < 16; ++j)

View file

@ -219,3 +219,8 @@ void hw_SetSplitSector(int sectnum, int start, int end)
splits.Push(start);
splits.Push(end);
}
void hw_ClearSplitSector()
{
splits.Clear();
}

View file

@ -30,3 +30,4 @@ extern int numsectionlines;
void hw_BuildSections();
void hw_SetSplitSector(int sector, int startpos, int endpos);
void hw_ClearSplitSector();

View file

@ -0,0 +1,3 @@
// SW $bath.ap sector bleeds into another area.
sector 198 split 1105 1125