mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -50,7 +50,7 @@ GameActions::Result SignSetStyleAction::Query() const
|
||||
auto banner = GetBanner(_bannerIndex);
|
||||
if (banner == nullptr)
|
||||
{
|
||||
log_error("Invalid banner id. id = ", _bannerIndex);
|
||||
LOG_ERROR("Invalid banner id. id = ", _bannerIndex);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
|
||||
}
|
||||
|
||||
@@ -59,12 +59,12 @@ GameActions::Result SignSetStyleAction::Query() const
|
||||
TileElement* tileElement = BannerGetTileElement(_bannerIndex);
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
log_warning("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
|
||||
LOG_WARNING("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
|
||||
}
|
||||
if (tileElement->GetType() != TileElementType::LargeScenery)
|
||||
{
|
||||
log_warning("Invalid game command for setting sign style, banner id '%d' is not large", _bannerIndex);
|
||||
LOG_WARNING("Invalid game command for setting sign style, banner id '%d' is not large", _bannerIndex);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ GameActions::Result SignSetStyleAction::Query() const
|
||||
|
||||
if (wallElement == nullptr)
|
||||
{
|
||||
log_warning("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
|
||||
LOG_WARNING("Invalid game command for setting sign style, banner id '%d' not found", _bannerIndex);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ GameActions::Result SignSetStyleAction::Execute() const
|
||||
auto banner = GetBanner(_bannerIndex);
|
||||
if (banner == nullptr)
|
||||
{
|
||||
log_error("Invalid banner id. id = ", _bannerIndex);
|
||||
LOG_ERROR("Invalid banner id. id = ", _bannerIndex);
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_REPAINT_THIS, STR_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user