Fixed clashing key names for text with the same information but differing widths. Corrected all GUI mispositioned text or incorrect wrapping on equip screens.
This commit is contained in:
@@ -3361,6 +3361,7 @@ namespace olc
|
||||
if(sText.length()==0)return;
|
||||
static std::map<std::string,DecalData>garbageCollector;
|
||||
std::string key{sText};
|
||||
key+=std::to_string(width);
|
||||
if(!disableDynamicScaling){
|
||||
key+=scale.str();
|
||||
}
|
||||
@@ -3394,6 +3395,7 @@ namespace olc
|
||||
if(sText.length()==0)return;
|
||||
static std::map<std::string,DecalData>garbageCollector;
|
||||
std::string key{sText};
|
||||
key+=std::to_string(width);
|
||||
if(!disableDynamicScaling){
|
||||
key+=scale.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user