Close #21974: No reason specified when attempting to place path additions on junctions

This commit is contained in:
Mike 2024-05-09 08:45:33 -04:00 committed by GitHub
parent 63e996194f
commit d58673105d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 1 deletions

View File

@ -239,6 +239,7 @@ Appreciation for contributors who have provided substantial work, but are no lon
* Cory Ye (CoryfY)
* Karsten Van Fossan (karstenvanf)
* Kaavya Ramachandhran (ayvaak)
* Mike Harvey (harvito)
## Toolchain
* (Balletie) - macOS

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 :Can only be placed on path edges!
#############
# Scenarios #

View File

@ -6,6 +6,7 @@
- Improved: [#21981] The map window now defaults to showing as much of the map as fits the screen.
- Change: [#7248] Small mini-maps are now centred in the map window.
- Fix: [#13294] Map corners are cut off in some directions (original bug).
- Fix: [#21974] No reason specified when attempting to place benches, lamps, or bins on path with no unconnected edges (original bug).
0.4.11 (2024-05-05)
------------------------------------------------------------------------

View File

@ -121,7 +121,8 @@ 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_CAN_ONLY_BE_PLACED_ON_PATH_EDGES);
}
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_CAN_ONLY_BE_PLACED_ON_PATH_EDGES = 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
};