hint for SET_SDF

This commit is contained in:
2025-08-24 20:16:43 -05:00
parent 36e08a3dcb
commit 90c6e1c1d8

View File

@@ -535,11 +535,18 @@ std::string cSpecial::editor_hint(const cScenario& scenario) const {
std::string hint = (*type).name();
switch(type){
case eSpecType::SET_SDF:{
std::string name = scenario.get_sdf_name(sd1, sd2);
if(name.empty()) name = "(" + std::to_string(sd1) + ", " + std::to_string(sd2) + ")";
else name = "'" + name + "'";
hint += " " + name + " to " + std::to_string(ex1a);
}break;
case eSpecType::TOWN_STAIR:
case eSpecType::TOWN_GENERIC_STAIR:
hint += " to ";
if(ex2a < scenario.towns.size()) hint += scenario.towns[ex2a]->loc_str(loc(ex1a, ex1b));
else hint += "INVALID TOWN";
break;
default: break;
}
return hint;