From 8e46f235a6d031e5eb21da9b53fd52ae7744a945 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 12 Jun 2020 14:26:34 +0200 Subject: [PATCH] - disabled the non-functional sidedef range check. Due to how sidedefs are decompressed this must not be checked in the linedef loader. --- src/maploader/maploader.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index 1d008f6b3..04b1a058d 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -1675,7 +1675,6 @@ void MapLoader::LoadLineDefs (MapData * map) auto mldf = map->Read(ML_LINEDEFS); int numlines = mldf.Size() / sizeof(maplinedef_t); - int numsides = map->Size(ML_SIDEDEFS) / sizeof(mapsidedef_t); linemap.Resize(numlines); // [RH] Count the number of sidedef references. This is the number of @@ -1742,14 +1741,6 @@ void MapLoader::LoadLineDefs (MapData * map) } #endif // cph 2006/09/30 - fix sidedef errors right away. - for (int j=0; j < 2; j++) - { - if (LittleShort(mld->sidenum[j]) != NO_INDEX && mld->sidenum[j] >= numsides) - { - mld->sidenum[j] = 0; // dummy sidedef - Printf("Linedef %d has a bad sidedef\n", i); - } - } // patch missing first sides instead of crashing out. // Visual glitches are better than not being able to play. if (LittleShort(mld->sidenum[0]) == NO_INDEX)