Skip to content

Commit

Permalink
Close OpenRCT2#21974: No reason specified when attempting to place pa…
Browse files Browse the repository at this point in the history
…th additions on junctions
  • Loading branch information
harvito authored May 9, 2024
1 parent 63e9961 commit d586731
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions data/language/en-GB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion src/openrct2/actions/FootpathAdditionPlaceAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions src/openrct2/localisation/StringIds.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

0 comments on commit d586731

Please sign in to comment.