|
@@ -893,9 +893,15 @@ void Director::SL_infoline(const std::string &line) {
|
|
|
|
|
|
// turns isn't ship specific
|
|
|
if (galaxy.meta["info"]["Turns left"]) {
|
|
|
- int turns = galaxy.meta["info"]["Turns left"].as<int>();
|
|
|
+ // OR this could be "Unlimited" !!!
|
|
|
+ std::string text = galaxy.meta["info"]["Turns left"].as<std::string>();
|
|
|
+ if (text == "Unlimited") {
|
|
|
+ galaxy.meta["turns"] = -1;
|
|
|
+ } else {
|
|
|
+ int turns = stoi(text); // galaxy.meta["info"]["Turns left"].as<int>();
|
|
|
BUGZ_LOG(fatal) << "Turns left: " << turns;
|
|
|
galaxy.meta["turns"] = turns;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (galaxy.meta["info"]["Current Sector"]) {
|