path tooltip no unconnected edges available

This commit is contained in:
harvito 2024-05-06 23:21:00 -04:00
parent a611244b31
commit 98c665b897
3 changed files with 6 additions and 1 deletions

View File

@ -3699,6 +3699,7 @@ STR_6624 :Tile Inspector: Sort elements
STR_6625 :Invalid colour
STR_6626 :Animation is backwards
STR_6627 :Track speed too high!
STR_6628 :No unconnected edges available!
#############
# Scenarios #

View File

@ -121,7 +121,9 @@ GameActions::Result FootpathAdditionPlaceAction::Query() const
if (!(sceneryFlags & (PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER | PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW))
&& (pathElement->GetEdges()) == 0x0F)
{
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE, STR_NONE);
return GameActions::Result(
GameActions::Status::InvalidParameters, STR_CANT_POSITION_THIS_HERE,
STR_CANNOT_PLACE_NO_UNCONNECTED_EDGES_AVAILABLE);
}
if ((sceneryFlags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) && !pathElement->IsQueue())

View File

@ -4047,6 +4047,8 @@ enum : uint16_t
STR_SPEED_TOO_HIGH = 6627,
STR_CANNOT_PLACE_NO_UNCONNECTED_EDGES_AVAILABLE = 6628,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
/* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings
};