Corrected Issue #22. Connection points that were already defined as existing were being reiterated through numerous times again.

pull/28/head
sigonasr2 1 year ago
parent 9756cc4a78
commit 49951c1502
  1. 3
      Crawler/Crawler.cpp
  2. 2
      Crawler/Version.h

@ -1473,9 +1473,9 @@ void Crawler::InitializeLevel(std::string mapFile,MapName map){
} }
for(ConnectionPoint&cp:State_OverworldMap::connections){ for(ConnectionPoint&cp:State_OverworldMap::connections){
if(cp.levelDataExists)continue;
if(VisualNovel::storyLevelData.count(cp.map)){ //Visual novel story data for story levels. if(VisualNovel::storyLevelData.count(cp.map)){ //Visual novel story data for story levels.
cp.levelDataExists=true; cp.levelDataExists=true;
break;
} }
if(LEVEL_NAMES.count(cp.map)&&&MapHelper::MapFromString(cp.map)==&MAP_DATA[map]){ if(LEVEL_NAMES.count(cp.map)&&&MapHelper::MapFromString(cp.map)==&MAP_DATA[map]){
MAP_DATA[map].name=cp.name; MAP_DATA[map].name=cp.name;
@ -1483,7 +1483,6 @@ void Crawler::InitializeLevel(std::string mapFile,MapName map){
cp.spawns.push_back(spawn); cp.spawns.push_back(spawn);
} }
cp.levelDataExists=true; cp.levelDataExists=true;
break;
} }
} }
} }

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 1 #define VERSION_PATCH 1
#define VERSION_BUILD 4267 #define VERSION_BUILD 4270
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Loading…
Cancel
Save