mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use correct function call for WallPlaceAction plugin visitor (#14806)
* Use correct function call for WallPlaceAction plugin visitor * Increment plugin version * Update changelog
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- Fix: [#14707] Crash when window is closed during text input.
|
||||
- Fix: [#14710] Ride/Track Design preview does not show if it costs more money than available.
|
||||
- Fix: [#14774] Incorrect import of scenery research caused all scenery to be unlocked.
|
||||
- Fix: [#14806] Incorrect function call in WallPlaceAction plugin code.
|
||||
- Improved: [#14511] “Unlock operating limits” cheat now also unlocks all music.
|
||||
- Improved: [#14712, #14716]: Improve startup times.
|
||||
|
||||
|
||||
@@ -68,10 +68,10 @@ void WallPlaceAction::AcceptParameters(GameActionParameterVisitor& visitor)
|
||||
visitor.Visit("primaryColour", _primaryColour);
|
||||
visitor.Visit("secondaryColour", _secondaryColour);
|
||||
visitor.Visit("tertiaryColour", _tertiaryColour);
|
||||
rct_scenery_entry* sceneryEntry = get_large_scenery_entry(_wallType);
|
||||
rct_scenery_entry* sceneryEntry = get_wall_entry(_wallType);
|
||||
if (sceneryEntry != nullptr)
|
||||
{
|
||||
if (sceneryEntry->large_scenery.scrolling_mode != SCROLLING_MODE_NONE)
|
||||
if (sceneryEntry->wall.scrolling_mode != SCROLLING_MODE_NONE)
|
||||
{
|
||||
_bannerId = create_new_banner(0);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRCT2
|
||||
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 30;
|
||||
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 31;
|
||||
|
||||
# ifndef DISABLE_NETWORK
|
||||
class ScSocketBase;
|
||||
|
||||
Reference in New Issue
Block a user