mirror of https://github.com/OpenRCT2/OpenRCT2.git
Prevent tab 0 from trying to be animated. Fixes #1529
This commit is contained in:
parent
e54e74257d
commit
a757f39a8c
|
@ -1277,7 +1277,7 @@ static void window_editor_object_selection_paint()
|
||||||
|
|
||||||
int spriteIndex = ride_tabs[i];
|
int spriteIndex = ride_tabs[i];
|
||||||
int frame = 0;
|
int frame = 0;
|
||||||
if (w->pressed_widgets & (1ULL << (WIDX_FILTER_RIDE_TAB_ALL + i))) {
|
if (i != 0 && w->pressed_widgets & (1ULL << (WIDX_FILTER_RIDE_TAB_ALL + i))) {
|
||||||
frame = w->frame_no / window_editor_object_selection_animation_divisor[i - 1];
|
frame = w->frame_no / window_editor_object_selection_animation_divisor[i - 1];
|
||||||
}
|
}
|
||||||
spriteIndex += (i == 4 ? ThrillRidesTabAnimationSequence[frame] : frame);
|
spriteIndex += (i == 4 ? ThrillRidesTabAnimationSequence[frame] : frame);
|
||||||
|
|
Loading…
Reference in New Issue