1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

implement balloon_press and duck_press

This commit is contained in:
IntelOrca
2015-03-25 21:41:20 +00:00
parent 10484ec17a
commit aacd6b9db0
3 changed files with 52 additions and 11 deletions

View File

@@ -132,7 +132,16 @@ int viewport_interaction_left_click(int x, int y)
window_guest_open(info.peep);
break;
case SPRITE_IDENTIFIER_MISC:
balloon_pop(info.sprite);
if (RCT2_GLOBAL(RCT2_ADDRESS_GAME_PAUSED, uint8) == 0) {
switch (info.sprite->unknown.misc_identifier) {
case SPRITE_MISC_BALLOON:
balloon_press(&info.sprite->balloon);
break;
case SPRITE_MISC_DUCK:
duck_press(&info.sprite->duck);
break;
}
}
break;
}
return 1;