From b8e163ffcfcc3bca2c2763ae97da429433675c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=AD=C5=A1a=20Szlachta?= Date: Fri, 1 Aug 2025 17:05:39 +0200 Subject: [PATCH] Fix #24821: Unclear guest spawn point placement error message (#24827) * Create named constant from previously commented-out line for string id 2251 * Change error message when trying to build spawn point outside footpath Error message change to STR_2251 :Can only be built on paths! --- src/openrct2/actions/PeepSpawnPlaceAction.cpp | 2 +- src/openrct2/localisation/StringIds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/actions/PeepSpawnPlaceAction.cpp b/src/openrct2/actions/PeepSpawnPlaceAction.cpp index f9a0c9ec35..1a07fb787d 100644 --- a/src/openrct2/actions/PeepSpawnPlaceAction.cpp +++ b/src/openrct2/actions/PeepSpawnPlaceAction.cpp @@ -67,7 +67,7 @@ GameActions::Result PeepSpawnPlaceAction::Query() const if (pathElement == nullptr) { return GameActions::Result( - GameActions::Status::InvalidParameters, STR_ERR_CANT_PLACE_PEEP_SPAWN_HERE, STR_CAN_ONLY_BE_BUILT_ACROSS_PATHS); + GameActions::Status::InvalidParameters, STR_ERR_CANT_PLACE_PEEP_SPAWN_HERE, STR_CAN_ONLY_BE_BUILT_ON_PATHS); } // Verify location is unowned diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index f8868b66ee..c370f33185 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -914,7 +914,7 @@ enum : StringId STR_CANT_DEMOLISH_RIDE = 2248, STR_NEWS_ITEM_RESEARCH_NEW_RIDE_AVAILABLE = 2249, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE = 2250, - // STR_2251 :Can only be built on paths! + STR_CAN_ONLY_BE_BUILT_ON_PATHS = 2251, STR_CAN_ONLY_BE_BUILT_ACROSS_PATHS = 2252, STR_RESEARCH_NEW_TRANSPORT_RIDES = 2253, STR_RESEARCH_NEW_GENTLE_RIDES = 2254,