From b997b8bf14bc4d2a9cadcc4cf70d9612368c0baa Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Mon, 15 Jun 2015 18:10:57 +0100 Subject: [PATCH] Fix large scenery rotation button missing Button was missing when the large scenery item was in position 0. Missing a compare. Scenery window needs to be refactored at some point. Fixes #1342. --- src/windows/scenery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/scenery.c b/src/windows/scenery.c index a546540d0a..6d67658ad0 100644 --- a/src/windows/scenery.c +++ b/src/windows/scenery.c @@ -923,7 +923,7 @@ void window_scenery_invalidate() window_scenery_widgets[WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type = WWT_FLATBTN; } } - else if (tabSelectedSceneryId > 0x300) { + else if (tabSelectedSceneryId >= 0x300) { window_scenery_widgets[WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type = WWT_FLATBTN; } }