Corrected Issue #22. Connection points that were already defined as existing were being reiterated through numerous times again.
This commit is contained in:
parent
9756cc4a78
commit
49951c1502
@ -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…
x
Reference in New Issue
Block a user