1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Change "invalid game command" messages

This commit is contained in:
Peter Froud
2024-03-16 22:36:26 -07:00
committed by Gymnasiast
parent 125fa12d6f
commit 13abc3441c
19 changed files with 57 additions and 48 deletions

View File

@@ -59,12 +59,13 @@ GameActions::Result SignSetStyleAction::Query() const
TileElement* tileElement = BannerGetTileElement(_bannerIndex);
if (tileElement == nullptr)
{
LOG_ERROR("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
LOG_ERROR("Banner tile element not found for bannerIndex %u", _bannerIndex);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
}
if (tileElement->GetType() != TileElementType::LargeScenery)
{
LOG_ERROR("Invalid game command for setting sign style, banner id '%d' is not large", _bannerIndex);
LOG_ERROR(
"Tile element has type %u, expected %d (LargeScenery)", tileElement->GetType(), TileElementType::LargeScenery);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
}
}
@@ -74,7 +75,7 @@ GameActions::Result SignSetStyleAction::Query() const
if (wallElement == nullptr)
{
LOG_ERROR("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
LOG_ERROR("Wall element not found for bannerIndex", _bannerIndex);
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
}
}