- merged FixMapInfo into loadcons.

No need to delay the remaining content. The reasons for the separate function no longer exist.
This commit is contained in:
Christoph Oelckers 2021-05-02 19:41:24 +02:00
parent 60d007fa93
commit 698d62bbc6
3 changed files with 2 additions and 7 deletions

View file

@ -227,7 +227,6 @@ void PlayerColorChanged(void);
bool movementBlocked(player_struct *p);
void loadcons();
void recordoldspritepos();
void FixMapinfo();
int* animateptr(int i);

View file

@ -325,7 +325,6 @@ void GameInterface::app_init()
screenpeek = myconnectindex;
LoadDefinitions();
FixMapinfo(); // Add some corrections. Can only be done after .def has been parsed.
fi.InitFonts();
SetTileNames();
TileFiles.SetBackup();

View file

@ -3230,14 +3230,11 @@ void loadcons()
S_WorldTourMappingsForOldSounds(); // create a sound mapping for World Tour.
S_CacheAllSounds();
comp.setmusic();
}
void FixMapinfo()
{
// RR must link the last map of E1 to the first map of E2.
for (auto& map : mapList)
if (isRR()) for (auto& map : mapList)
{
if (isRR() && map->cluster == 1)
if (map->cluster == 1)
{
if (!FindMapByIndexOnly(map->cluster, map->mapindex + 1))
{