mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-11 01:52:32 +01:00
Can now pop balloons and quack ducks in title screen. (#9614)
* Can now pop balloons and quack ducks in title screen. * Chengelog entry * Narrow check for misc sprite down to only duck and balloon sprite. * Update distribution/changelog.txt Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com> * Use the IsBalloon and IsDuck functions instead. * Update src/openrct2-ui/interface/ViewportInteraction.cpp Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com> * Squash: Bring code up to date. * Add nullptr check. * Update src/openrct2-ui/interface/ViewportInteraction.cpp Co-authored-by: Aaron van Geffen <aaron@aaronweb.net> Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com> Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
------------------------------------------------------------------------
|
||||
- Feature: [#7648] "Enable all drawable track pieces" now enables more pieces for the Twister, Vertical and Air Powered Vertical coasters.
|
||||
- Feature: [#9029] Open doors with the tile inspector.
|
||||
- Feature: [#9614] Allow popping balloons and quacking ducks in the title screen.
|
||||
- Feature: [#10572] Cheat to allow building at invalid heights.
|
||||
- Feature: [#11155] Guest entry points can now be removed by clicking them again.
|
||||
- Feature: [#11231] Change shortcut window list order to be more intuitive, and split it into logical sections.
|
||||
|
||||
@@ -57,8 +57,8 @@ int32_t viewport_interaction_get_item_left(const ScreenCoordsXY& screenCoords, v
|
||||
rct_sprite* sprite;
|
||||
Vehicle* vehicle;
|
||||
|
||||
// No click input for title screen or scenario editor or track manager
|
||||
if (gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER))
|
||||
// No click input for scenario editor or track manager
|
||||
if (gScreenFlags & (SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER))
|
||||
return info->type = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
|
||||
//
|
||||
@@ -74,6 +74,15 @@ int32_t viewport_interaction_get_item_left(const ScreenCoordsXY& screenCoords, v
|
||||
tileElement = info->tileElement;
|
||||
sprite = info->sprite;
|
||||
|
||||
// Allows only balloons to be popped and ducks to be quacked in title screen
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
|
||||
{
|
||||
if (info->type == VIEWPORT_INTERACTION_ITEM_SPRITE && (sprite->generic.Is<Balloon>() || sprite->generic.Is<Duck>()))
|
||||
return info->type;
|
||||
else
|
||||
return info->type = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
}
|
||||
|
||||
switch (info->type)
|
||||
{
|
||||
case VIEWPORT_INTERACTION_ITEM_SPRITE:
|
||||
|
||||
Reference in New Issue
Block a user