1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Minor code changes per reviewer comments.

This commit is contained in:
zaxcav
2017-01-12 22:37:54 +01:00
parent 0d81835224
commit 6a4ced856e
3 changed files with 5 additions and 6 deletions

View File

@@ -21,7 +21,6 @@
#include "../../ride/ride_data.h"
#include "../../interface/viewport.h"
#include "../../ride/vehicle_paint.h"
#include "../../localisation/localisation.h"
/**
* Paint Quadrant

View File

@@ -234,6 +234,7 @@ static rct_windowclass window_themes_tab_5_classes[] = {
static rct_windowclass window_themes_tab_6_classes[] = {
WC_CHEATS,
WC_TILE_INSPECTOR,
WC_VIEW_CLIPPING,
WC_THEMES,
WC_TITLE_EDITOR,
WC_OPTIONS,
@@ -245,7 +246,6 @@ static rct_windowclass window_themes_tab_6_classes[] = {
WC_MULTIPLAYER,
WC_PLAYER,
WC_CHAT,
WC_VIEW_CLIPPING,
};
static rct_windowclass window_themes_tab_7_classes[] = {

View File

@@ -1,4 +1,4 @@
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
@@ -35,8 +35,8 @@ enum WINDOW_VIEW_CLIPPING_WIDGET_IDX {
};
typedef enum DISPLAY_TYPE {
DISPLAY_RAW = 0,
DISPLAY_UNITS = 1
DISPLAY_RAW,
DISPLAY_UNITS
} clip_value_display_type;
clip_value_display_type gClipHeightDisplayType = DISPLAY_UNITS;
@@ -198,7 +198,7 @@ static void window_view_clipping_mouseup(rct_window *w, int widgetIndex)
window_invalidate(mainWindow);
break;
case WIDX_CLIP_HEIGHT_DECREASE:
if(gClipHeight > 0)
if (gClipHeight > 0)
window_view_clipping_set_clipheight(w, gClipHeight - 1);
mainWindow = window_get_main();
if (mainWindow != NULL)