forked from rosebudai/OpenRCT2-Web
Use nullptr where possible
This commit is contained in:
1 parent
56ab7e9c09
commit
b2bc974fe7
110 files changed
+2602
-2602
No files matched your search
@@ -380,7 +380,7 @@ namespace OpenRCT2 { namespace Audio
|
||||
SpeexResamplerState * resampler = channel->GetResampler();
|
||||
if (resampler == nullptr)
|
||||
{
|
||||
resampler = speex_resampler_init(_format.channels, _format.freq, _format.freq, 0, 0);
|
||||
resampler = speex_resampler_init(_format.channels, _format.freq, _format.freq, 0, nullptr);
|
||||
channel->SetResampler(resampler);
|
||||
}
|
||||
speex_resampler_set_rate(resampler, inRate, outRate);
|
||||
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
}
|
||||
|
||||
uint32 format;
|
||||
SDL_QueryTexture(_screenTexture, &format, 0, 0, 0);
|
||||
SDL_QueryTexture(_screenTexture, &format, nullptr, nullptr, nullptr);
|
||||
_screenTextureFormat = SDL_AllocFormat(format);
|
||||
|
||||
ConfigureBits(width, height, width);
|
||||
|
||||
@@ -136,7 +136,7 @@ private:
|
||||
size_t _bitsSize = 0;
|
||||
uint8 * _bits = nullptr;
|
||||
|
||||
rct_drawpixelinfo _bitsDPI = { 0 };
|
||||
rct_drawpixelinfo _bitsDPI = { nullptr };
|
||||
|
||||
OpenGLDrawingContext * _drawingContext;
|
||||
|
||||
|
||||
@@ -81,11 +81,11 @@ static void game_handle_key_scroll()
|
||||
sint32 scrollX, scrollY;
|
||||
|
||||
mainWindow = window_get_main();
|
||||
if (mainWindow == NULL)
|
||||
if (mainWindow == nullptr)
|
||||
return;
|
||||
if ((mainWindow->flags & WF_NO_SCROLLING) || (gScreenFlags & (SCREEN_FLAGS_TRACK_MANAGER | SCREEN_FLAGS_TITLE_DEMO)))
|
||||
return;
|
||||
if (mainWindow->viewport == NULL)
|
||||
if (mainWindow->viewport == nullptr)
|
||||
return;
|
||||
|
||||
rct_window * textWindow;
|
||||
@@ -200,7 +200,7 @@ void input_handle_keyboard(bool isTitle)
|
||||
key |= gInputPlaceObjectModifier << 8;
|
||||
|
||||
rct_window * w = window_find_by_class(WC_TEXTINPUT);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
char keychar = input_scancode_to_rct_keycode(key & 0xFF);
|
||||
window_text_input_key(w, keychar);
|
||||
@@ -208,7 +208,7 @@ void input_handle_keyboard(bool isTitle)
|
||||
else if (!gUsingWidgetTextBox)
|
||||
{
|
||||
w = window_find_by_class(WC_CHANGE_KEYBOARD_SHORTCUT);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
keyboard_shortcuts_set(key);
|
||||
window_close_by_class(WC_CHANGE_KEYBOARD_SHORTCUT);
|
||||
|
||||
@@ -64,7 +64,7 @@ void keyboard_shortcut_handle_command(sint32 shortcutIndex)
|
||||
if (shortcutIndex >= 0 && static_cast<uint32>(shortcutIndex) < Util::CountOf(shortcut_table))
|
||||
{
|
||||
shortcut_action action = shortcut_table[shortcutIndex];
|
||||
if (action != NULL)
|
||||
if (action != nullptr)
|
||||
{
|
||||
action();
|
||||
}
|
||||
@@ -78,7 +78,7 @@ static void toggle_view_flag(sint32 viewportFlag)
|
||||
rct_window * window;
|
||||
|
||||
window = window_get_main();
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window->viewport->flags ^= viewportFlag;
|
||||
window_invalidate(window);
|
||||
@@ -104,7 +104,7 @@ static void shortcut_cancel_construction_mode()
|
||||
return;
|
||||
|
||||
rct_window * window = window_find_by_class(WC_ERROR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
window_close(window);
|
||||
else if (input_test_flag(INPUT_FLAG_TOOL_ACTIVE))
|
||||
tool_cancel();
|
||||
@@ -115,7 +115,7 @@ static void shortcut_pause_game()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_PAUSE);
|
||||
@@ -158,7 +158,7 @@ static void shortcut_rotate_construction_object()
|
||||
|
||||
// Rotate scenery
|
||||
rct_window * w = window_find_by_class(WC_SCENERY);
|
||||
if (w != NULL && !widget_is_disabled(w, WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON) &&
|
||||
if (w != nullptr && !widget_is_disabled(w, WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON) &&
|
||||
w->widgets[WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type != WWT_EMPTY)
|
||||
{
|
||||
window_event_mouse_up_call(w, WC_SCENERY__WIDX_SCENERY_ROTATE_OBJECTS_BUTTON);
|
||||
@@ -167,7 +167,7 @@ static void shortcut_rotate_construction_object()
|
||||
|
||||
// Rotate construction track piece
|
||||
w = window_find_by_class(WC_RIDE_CONSTRUCTION);
|
||||
if (w != NULL && !widget_is_disabled(w, WC_RIDE_CONSTRUCTION__WIDX_ROTATE) &&
|
||||
if (w != nullptr && !widget_is_disabled(w, WC_RIDE_CONSTRUCTION__WIDX_ROTATE) &&
|
||||
w->widgets[WC_RIDE_CONSTRUCTION__WIDX_ROTATE].type != WWT_EMPTY)
|
||||
{
|
||||
// Check if building a maze...
|
||||
@@ -180,7 +180,7 @@ static void shortcut_rotate_construction_object()
|
||||
|
||||
// Rotate track design preview
|
||||
w = window_find_by_class(WC_TRACK_DESIGN_LIST);
|
||||
if (w != NULL && !widget_is_disabled(w, WC_TRACK_DESIGN_LIST__WIDX_ROTATE) &&
|
||||
if (w != nullptr && !widget_is_disabled(w, WC_TRACK_DESIGN_LIST__WIDX_ROTATE) &&
|
||||
w->widgets[WC_TRACK_DESIGN_LIST__WIDX_ROTATE].type != WWT_EMPTY)
|
||||
{
|
||||
window_event_mouse_up_call(w, WC_TRACK_DESIGN_LIST__WIDX_ROTATE);
|
||||
@@ -189,7 +189,7 @@ static void shortcut_rotate_construction_object()
|
||||
|
||||
// Rotate track design placement
|
||||
w = window_find_by_class(WC_TRACK_DESIGN_PLACE);
|
||||
if (w != NULL && !widget_is_disabled(w, WC_TRACK_DESIGN_PLACE__WIDX_ROTATE) &&
|
||||
if (w != nullptr && !widget_is_disabled(w, WC_TRACK_DESIGN_PLACE__WIDX_ROTATE) &&
|
||||
w->widgets[WC_TRACK_DESIGN_PLACE__WIDX_ROTATE].type != WWT_EMPTY)
|
||||
{
|
||||
window_event_mouse_up_call(w, WC_TRACK_DESIGN_PLACE__WIDX_ROTATE);
|
||||
@@ -198,7 +198,7 @@ static void shortcut_rotate_construction_object()
|
||||
|
||||
// Rotate park entrance
|
||||
w = window_find_by_class(WC_MAP);
|
||||
if (w != NULL && !widget_is_disabled(w, WC_MAP__WIDX_ROTATE_90) && w->widgets[WC_MAP__WIDX_ROTATE_90].type != WWT_EMPTY)
|
||||
if (w != nullptr && !widget_is_disabled(w, WC_MAP__WIDX_ROTATE_90) && w->widgets[WC_MAP__WIDX_ROTATE_90].type != WWT_EMPTY)
|
||||
{
|
||||
window_event_mouse_up_call(w, WC_MAP__WIDX_ROTATE_90);
|
||||
return;
|
||||
@@ -233,7 +233,7 @@ static void shortcut_remove_top_bottom_toolbar_toggle()
|
||||
{
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
|
||||
{
|
||||
if (window_find_by_class(WC_TITLE_LOGO) != NULL)
|
||||
if (window_find_by_class(WC_TITLE_LOGO) != nullptr)
|
||||
{
|
||||
window_close(window_find_by_class(WC_TITLE_LOGO));
|
||||
window_close(window_find_by_class(WC_TITLE_OPTIONS));
|
||||
@@ -248,7 +248,7 @@ static void shortcut_remove_top_bottom_toolbar_toggle()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (window_find_by_class(WC_TOP_TOOLBAR) != NULL)
|
||||
if (window_find_by_class(WC_TOP_TOOLBAR) != nullptr)
|
||||
{
|
||||
window_close(window_find_by_class(WC_DROPDOWN));
|
||||
window_close(window_find_by_class(WC_TOP_TOOLBAR));
|
||||
@@ -353,7 +353,7 @@ static void shortcut_adjust_land()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_LAND);
|
||||
@@ -372,7 +372,7 @@ static void shortcut_adjust_water()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_WATER);
|
||||
@@ -391,7 +391,7 @@ static void shortcut_build_scenery()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_SCENERY);
|
||||
@@ -410,7 +410,7 @@ static void shortcut_build_paths()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_PATH);
|
||||
@@ -547,7 +547,7 @@ static void shortcut_open_cheat_window()
|
||||
|
||||
// Check if window is already open
|
||||
rct_window * window = window_find_by_class(WC_CHEATS);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_close(window);
|
||||
return;
|
||||
@@ -565,7 +565,7 @@ static void shortcut_clear_scenery()
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_TOP_TOOLBAR);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_invalidate(window);
|
||||
window_event_mouse_up_call(window, WC_TOP_TOOLBAR__WIDX_CLEAR_SCENERY);
|
||||
@@ -631,7 +631,7 @@ static void shortcut_orginal_painting_toggle()
|
||||
static void shortcut_debug_paint_toggle()
|
||||
{
|
||||
rct_window * window = window_find_by_class(WC_DEBUG_PAINT);
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
window_close(window);
|
||||
}
|
||||
@@ -788,10 +788,10 @@ namespace
|
||||
shortcut_increase_game_speed,
|
||||
shortcut_open_cheat_window,
|
||||
shortcut_remove_top_bottom_toolbar_toggle,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
nullptr,
|
||||
nullptr,
|
||||
nullptr,
|
||||
nullptr,
|
||||
shortcut_open_chat_window,
|
||||
shortcut_quick_save_game,
|
||||
shortcut_show_options,
|
||||
|
||||
@@ -153,7 +153,7 @@ void game_handle_input()
|
||||
static sint32 game_get_next_input(sint32 * x, sint32 * y)
|
||||
{
|
||||
rct_mouse_data * input = get_mouse_input();
|
||||
if (input == NULL)
|
||||
if (input == nullptr)
|
||||
{
|
||||
const CursorState * cursorState = context_get_cursor_state();
|
||||
*x = cursorState->x;
|
||||
@@ -177,7 +177,7 @@ static rct_mouse_data * get_mouse_input()
|
||||
// Check if that location has been written to yet
|
||||
if (_mouseInputQueueReadIndex == _mouseInputQueueWriteIndex)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -255,7 +255,7 @@ static void input_scroll_drag_continue(sint32 x, sint32 y, rct_window * w)
|
||||
static void input_scroll_right(sint32 x, sint32 y, sint32 state)
|
||||
{
|
||||
rct_window * w = window_find_by_number(_dragWidget.window_classification, _dragWidget.window_number);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
context_show_cursor();
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
@@ -291,8 +291,8 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
|
||||
// Get window and widget under cursor position
|
||||
w = window_find_from_point(x, y);
|
||||
widgetIndex = w == NULL ? -1 : window_find_widget_from_point(w, x, y);
|
||||
widget = widgetIndex == -1 ? 0 : &w->widgets[widgetIndex];
|
||||
widgetIndex = w == nullptr ? -1 : window_find_widget_from_point(w, x, y);
|
||||
widget = widgetIndex == -1 ? nullptr : &w->widgets[widgetIndex];
|
||||
|
||||
switch (_inputState)
|
||||
{
|
||||
@@ -311,7 +311,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
case MOUSE_STATE_RIGHT_PRESS:
|
||||
window_close_by_class(WC_TOOLTIP);
|
||||
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
w = window_bring_to_front(w);
|
||||
}
|
||||
@@ -339,7 +339,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
break;
|
||||
case INPUT_STATE_POSITIONING_WINDOW:
|
||||
w = window_find_by_number(_dragWidget.window_classification, _dragWidget.window_number);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
break;
|
||||
case INPUT_STATE_VIEWPORT_LEFT:
|
||||
w = window_find_by_number(_dragWidget.window_classification, _dragWidget.window_number);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
break;
|
||||
@@ -381,7 +381,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
switch (state)
|
||||
{
|
||||
case MOUSE_STATE_RELEASED:
|
||||
if (w->viewport == NULL)
|
||||
if (w->viewport == nullptr)
|
||||
{
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
break;
|
||||
@@ -394,7 +394,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
}
|
||||
|
||||
w = window_find_by_number(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -408,7 +408,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
if ((_inputFlags & INPUT_FLAG_TOOL_ACTIVE))
|
||||
{
|
||||
w = window_find_by_number(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_tool_up_call(w, gCurrentToolWidget.widget_index, x, y);
|
||||
}
|
||||
@@ -434,7 +434,7 @@ static void game_handle_input_mouse(sint32 x, sint32 y, sint32 state)
|
||||
break;
|
||||
case INPUT_STATE_RESIZING:
|
||||
w = window_find_by_number(_dragWidget.window_classification, _dragWidget.window_number);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
}
|
||||
@@ -549,7 +549,7 @@ static void input_viewport_drag_continue()
|
||||
|
||||
// #3294: Window can be closed during a drag session, so just finish
|
||||
// the session if the window no longer exists
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
input_viewport_drag_end();
|
||||
return;
|
||||
@@ -557,7 +557,7 @@ static void input_viewport_drag_continue()
|
||||
|
||||
viewport = w->viewport;
|
||||
_ticksSinceDragStart += gTicksSinceLastUpdate;
|
||||
if (viewport == NULL)
|
||||
if (viewport == nullptr)
|
||||
{
|
||||
context_show_cursor();
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
@@ -916,9 +916,9 @@ static void input_widget_over(sint32 x, sint32 y, rct_window * w, rct_widgetinde
|
||||
{
|
||||
rct_windowclass windowClass = WC_NULL;
|
||||
rct_windownumber windowNumber = 0;
|
||||
rct_widget * widget = NULL;
|
||||
rct_widget * widget = nullptr;
|
||||
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
windowClass = w->classification;
|
||||
windowNumber = w->number;
|
||||
@@ -927,7 +927,7 @@ static void input_widget_over(sint32 x, sint32 y, rct_window * w, rct_widgetinde
|
||||
|
||||
input_widget_over_change_check(windowClass, windowNumber, widgetIndex);
|
||||
|
||||
if (w != NULL && widgetIndex != -1 && widget->type == WWT_SCROLL)
|
||||
if (w != nullptr && widgetIndex != -1 && widget->type == WWT_SCROLL)
|
||||
{
|
||||
sint32 eax, ebx, scroll_part, edx;
|
||||
widget_scroll_get_part(w, widget, x, y, &eax, &ebx, &scroll_part, &edx);
|
||||
@@ -986,7 +986,7 @@ static void input_widget_over_change_check(rct_windowclass windowClass, rct_wind
|
||||
static void input_widget_over_flatbutton_invalidate()
|
||||
{
|
||||
rct_window * w = window_find_by_number(gHoverWidget.window_classification, gHoverWidget.window_number);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
if (w->widgets[gHoverWidget.widget_index].type == WWT_FLATBTN)
|
||||
@@ -1007,7 +1007,7 @@ static void input_widget_left(sint32 x, sint32 y, rct_window * w, rct_widgetinde
|
||||
rct_windownumber windowNumber = 0;
|
||||
rct_widget * widget;
|
||||
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
windowClass = w->classification;
|
||||
windowNumber = w->number;
|
||||
@@ -1018,7 +1018,7 @@ static void input_widget_left(sint32 x, sint32 y, rct_window * w, rct_widgetinde
|
||||
|
||||
// Window might have changed position in the list, therefore find it again
|
||||
w = window_find_by_number(windowClass, windowNumber);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
return;
|
||||
|
||||
w = window_bring_to_front(w);
|
||||
@@ -1049,7 +1049,7 @@ static void input_widget_left(sint32 x, sint32 y, rct_window * w, rct_widgetinde
|
||||
if (_inputFlags & INPUT_FLAG_TOOL_ACTIVE)
|
||||
{
|
||||
w = window_find_by_number(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_tool_down_call(w, gCurrentToolWidget.widget_index, x, y);
|
||||
_inputFlags |= INPUT_FLAG_4;
|
||||
@@ -1098,7 +1098,7 @@ void process_mouse_over(sint32 x, sint32 y)
|
||||
set_map_tooltip_format_arg(0, rct_string_id, STR_NONE);
|
||||
window = window_find_from_point(x, y);
|
||||
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
sint32 ebx, edi;
|
||||
rct_window * subWindow;
|
||||
@@ -1120,7 +1120,7 @@ void process_mouse_over(sint32 x, sint32 y)
|
||||
}
|
||||
cursorId = gCurrentToolId;
|
||||
subWindow = window_find_by_number(gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number);
|
||||
if (subWindow == NULL)
|
||||
if (subWindow == nullptr)
|
||||
break;
|
||||
|
||||
ebx = 0;
|
||||
@@ -1214,7 +1214,7 @@ void input_state_widget_pressed(sint32 x, sint32 y, sint32 state, rct_widgetinde
|
||||
rct_widgetindex cursor_widgetIndex = gPressedWidget.widget_index;
|
||||
|
||||
rct_window * cursor_w = window_find_by_number(cursor_w_class, cursor_w_number);
|
||||
if (cursor_w == NULL)
|
||||
if (cursor_w == nullptr)
|
||||
{
|
||||
_inputState = INPUT_STATE_RESET;
|
||||
return;
|
||||
@@ -1371,7 +1371,7 @@ void input_state_widget_pressed(sint32 x, sint32 y, sint32 state, rct_widgetinde
|
||||
|
||||
gDropdownHighlightedIndex = -1;
|
||||
window_invalidate_by_class(WC_DROPDOWN);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1465,7 +1465,7 @@ static void input_update_tooltip(rct_window * w, rct_widgetindex widgetIndex, si
|
||||
{
|
||||
reset_tooltip_not_shown();
|
||||
|
||||
if (w == NULL || gTooltipWidget.window_classification != w->classification ||
|
||||
if (w == nullptr || gTooltipWidget.window_classification != w->classification ||
|
||||
gTooltipWidget.window_number != w->number || gTooltipWidget.widget_index != widgetIndex)
|
||||
{
|
||||
window_tooltip_close();
|
||||
@@ -1524,7 +1524,7 @@ void set_cursor(uint8 cursor_id)
|
||||
void invalidate_scroll()
|
||||
{
|
||||
rct_window * w = window_find_by_number(gPressedWidget.window_classification, gPressedWidget.window_number);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
// Reset to basic scroll
|
||||
w->scrolls[_currentScrollIndex].flags &= 0xFF11;
|
||||
@@ -1558,11 +1558,11 @@ void game_handle_edge_scroll()
|
||||
sint32 scrollX, scrollY;
|
||||
|
||||
mainWindow = window_get_main();
|
||||
if (mainWindow == NULL)
|
||||
if (mainWindow == nullptr)
|
||||
return;
|
||||
if ((mainWindow->flags & WF_NO_SCROLLING) || (gScreenFlags & (SCREEN_FLAGS_TRACK_MANAGER | SCREEN_FLAGS_TITLE_DEMO)))
|
||||
return;
|
||||
if (mainWindow->viewport == NULL)
|
||||
if (mainWindow->viewport == nullptr)
|
||||
return;
|
||||
if (!context_has_focus())
|
||||
return;
|
||||
|
||||
@@ -435,7 +435,7 @@ void window_editor_bottom_toolbar_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].left) / 2 + w->x;
|
||||
sint16 stateY = w->height - 0x0C + w->y;
|
||||
gfx_draw_string_centred(dpi, EditorStepNames[gS6Info.editor_step],
|
||||
stateX, stateY, NOT_TRANSLUCENT(w->colours[2]) | COLOUR_FLAG_OUTLINE, 0);
|
||||
stateX, stateY, NOT_TRANSLUCENT(w->colours[2]) | COLOUR_FLAG_OUTLINE, nullptr);
|
||||
|
||||
if (drawPreviousButton) {
|
||||
gfx_draw_sprite(dpi, SPR_PREVIOUS,
|
||||
|
||||
@@ -228,7 +228,7 @@ static void window_install_track_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
sint32 colour = ColourMapA[w->colours[0]].darkest;
|
||||
gfx_fill_rect(dpi, x, y, x + 369, y + 216, colour);
|
||||
|
||||
rct_g1_element g1temp = { 0 };
|
||||
rct_g1_element g1temp = { nullptr };
|
||||
g1temp.offset = _trackDesignPreviewPixels + (_currentTrackPieceDirection * TRACK_PREVIEW_IMAGE_SIZE);
|
||||
g1temp.width = 370;
|
||||
g1temp.height = 217;
|
||||
|
||||
@@ -888,7 +888,7 @@ static void window_map_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32
|
||||
{
|
||||
gfx_clear(dpi, PALETTE_INDEX_10);
|
||||
|
||||
rct_g1_element g1temp = { 0 };
|
||||
rct_g1_element g1temp = { nullptr };
|
||||
g1temp.offset = (uint8 *)_mapImageData;
|
||||
g1temp.width = MAP_WINDOW_MAP_SIZE;
|
||||
g1temp.height = MAP_WINDOW_MAP_SIZE;
|
||||
|
||||
@@ -368,7 +368,7 @@ static void window_sign_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
static void window_sign_viewport_rotate(rct_window *w)
|
||||
{
|
||||
rct_viewport* view = w->viewport;
|
||||
w->viewport = 0;
|
||||
w->viewport = nullptr;
|
||||
|
||||
view->width = 0;
|
||||
viewport_update_pointers();
|
||||
|
||||
@@ -775,7 +775,7 @@ static void window_title_command_editor_paint(rct_window * w, rct_drawpixelinfo
|
||||
w->widgets[WIDX_COMMAND_DROPDOWN].left - w->widgets[WIDX_COMMAND].left - 4);
|
||||
|
||||
// Label (e.g. "Location:")
|
||||
gfx_draw_string_left(dpi, command_info.descStringId, NULL, w->colours[1], w->x + WS, w->y + BY2 - 14);
|
||||
gfx_draw_string_left(dpi, command_info.descStringId, nullptr, w->colours[1], w->x + WS, w->y + BY2 - 14);
|
||||
|
||||
if (command.Type == TITLE_SCRIPT_SPEED)
|
||||
{
|
||||
|
||||
@@ -467,7 +467,7 @@ static void window_track_place_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
// Draw mini tile preview
|
||||
rct_drawpixelinfo clippedDpi;
|
||||
if (clip_drawpixelinfo(&clippedDpi, dpi, w->x + 4, w->y + 18, 168, 78)) {
|
||||
rct_g1_element g1temp = { 0 };
|
||||
rct_g1_element g1temp = { nullptr };
|
||||
g1temp.offset = _window_track_place_mini_preview;
|
||||
g1temp.width = TRACK_MINI_PREVIEW_WIDTH;
|
||||
g1temp.height = TRACK_MINI_PREVIEW_HEIGHT;
|
||||
|
||||
@@ -537,7 +537,7 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
return;
|
||||
}
|
||||
|
||||
rct_g1_element g1temp = { 0 };
|
||||
rct_g1_element g1temp = { nullptr };
|
||||
g1temp.offset = _trackDesignPreviewPixels + (_currentTrackPieceDirection * TRACK_PREVIEW_IMAGE_SIZE);
|
||||
g1temp.width = 370;
|
||||
g1temp.height = 217;
|
||||
|
||||
@@ -156,7 +156,7 @@ static void cheat_fix_rides()
|
||||
{
|
||||
mechanic = ride_get_assigned_mechanic(ride);
|
||||
|
||||
if (mechanic != NULL){
|
||||
if (mechanic != nullptr){
|
||||
remove_peep_from_ride(mechanic);
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ static void sprite_entries_make_relative()
|
||||
static bool sprite_file_open(const utf8 *path)
|
||||
{
|
||||
FILE * file = fopen(path, "rb");
|
||||
if (file == NULL)
|
||||
if (file == nullptr)
|
||||
return false;
|
||||
|
||||
if (fread(&spriteFileHeader, sizeof(rct_sprite_file_header), 1, file) != 1) {
|
||||
@@ -108,7 +108,7 @@ static bool sprite_file_open(const utf8 *path)
|
||||
if (spriteFileHeader.num_entries > 0) {
|
||||
sint32 openEntryTableSize = spriteFileHeader.num_entries * sizeof(rct_g1_element_32bit);
|
||||
rct_g1_element_32bit * openElements = (rct_g1_element_32bit *)malloc(openEntryTableSize);
|
||||
if (openElements == NULL) {
|
||||
if (openElements == nullptr) {
|
||||
fclose(file);
|
||||
return false;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ static bool sprite_file_open(const utf8 *path)
|
||||
static bool sprite_file_save(const char *path)
|
||||
{
|
||||
FILE * file = fopen(path, "wb");
|
||||
if (file == NULL)
|
||||
if (file == nullptr)
|
||||
return false;
|
||||
|
||||
if (fwrite(&spriteFileHeader, sizeof(rct_sprite_file_header), 1, file) != 1) {
|
||||
@@ -163,7 +163,7 @@ static bool sprite_file_save(const char *path)
|
||||
if (spriteFileHeader.num_entries > 0) {
|
||||
sint32 saveEntryTableSize = spriteFileHeader.num_entries * sizeof(rct_g1_element_32bit);
|
||||
rct_g1_element_32bit * saveElements = (rct_g1_element_32bit *)malloc(saveEntryTableSize);
|
||||
if (saveElements == NULL) {
|
||||
if (saveElements == nullptr) {
|
||||
fclose(file);
|
||||
return false;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ static bool sprite_file_export(sint32 spriteIndex, const char *outPath)
|
||||
if (spriteHeader->flags & G1_FLAG_RLE_COMPRESSION) {
|
||||
gfx_rle_sprite_to_buffer(spriteHeader->offset, pixels, (uint8*)spriteFilePalette, &dpi, IMAGE_TYPE_DEFAULT, 0, spriteHeader->height, 0, spriteHeader->width);
|
||||
} else {
|
||||
gfx_bmp_sprite_to_buffer((uint8*)spriteFilePalette, NULL, spriteHeader->offset, pixels, spriteHeader, &dpi, spriteHeader->height, spriteHeader->width, IMAGE_TYPE_DEFAULT);
|
||||
gfx_bmp_sprite_to_buffer((uint8*)spriteFilePalette, nullptr, spriteHeader->offset, pixels, spriteHeader, &dpi, spriteHeader->height, spriteHeader->width, IMAGE_TYPE_DEFAULT);
|
||||
}
|
||||
|
||||
if (image_io_png_write(&dpi, (rct_palette*)spriteFilePalette, outPath)) {
|
||||
@@ -330,7 +330,7 @@ static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offse
|
||||
|
||||
// A larger range is needed for proper dithering
|
||||
uint8 *palettedSrc = pixels;
|
||||
sint16 *rgbaSrc = keep_palette? 0 : (sint16 *)malloc(height * width * 4 * 2);
|
||||
sint16 *rgbaSrc = keep_palette? nullptr : (sint16 *)malloc(height * width * 4 * 2);
|
||||
sint16 *rgbaSrc_orig = rgbaSrc;
|
||||
if (!keep_palette)
|
||||
{
|
||||
@@ -347,7 +347,7 @@ static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offse
|
||||
|
||||
yOffsets[y] = (uint16)(dst - buffer);
|
||||
|
||||
previousCode = NULL;
|
||||
previousCode = nullptr;
|
||||
currentCode = (rle_code*)dst;
|
||||
dst += 2;
|
||||
sint32 startX = 0;
|
||||
@@ -478,7 +478,7 @@ static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offse
|
||||
}
|
||||
else
|
||||
{
|
||||
if (previousCode == NULL)
|
||||
if (previousCode == nullptr)
|
||||
{
|
||||
currentCode->num_pixels = 0x80;
|
||||
currentCode->offset_x = 0;
|
||||
@@ -743,7 +743,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc)
|
||||
json_error_t error;
|
||||
json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error);
|
||||
|
||||
if (sprite_list == NULL)
|
||||
if (sprite_list == nullptr)
|
||||
{
|
||||
fprintf(stderr, "Error parsing sprite description file: %s at line %d column %d\n", error.text, error.line, error.column);
|
||||
return -1;
|
||||
@@ -807,8 +807,8 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc)
|
||||
int bufferLength;
|
||||
|
||||
if (!sprite_file_import(imagePath,
|
||||
x_offset == NULL ? 0 : json_integer_value(x_offset),
|
||||
y_offset == NULL ? 0 : json_integer_value(y_offset),
|
||||
x_offset == nullptr ? 0 : json_integer_value(x_offset),
|
||||
y_offset == nullptr ? 0 : json_integer_value(y_offset),
|
||||
keep_palette, &spriteElement, &buffer, &bufferLength, gSpriteMode))
|
||||
{
|
||||
fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath);
|
||||
|
||||
@@ -33,7 +33,7 @@ uint8 gIntroState;
|
||||
// Used mainly for timing but also for Y coordinate and fading.
|
||||
static sint32 _introStateCounter;
|
||||
|
||||
static void *_soundChannel = NULL;
|
||||
static void *_soundChannel = nullptr;
|
||||
static bool _chainLiftFinished;
|
||||
|
||||
static void screen_intro_process_mouse_input();
|
||||
@@ -88,9 +88,9 @@ void intro_update()
|
||||
_chainLiftFinished = true;
|
||||
|
||||
// Stop the chain lift sound
|
||||
if (_soundChannel != NULL) {
|
||||
if (_soundChannel != nullptr) {
|
||||
Mixer_Stop_Channel(_soundChannel);
|
||||
_soundChannel = NULL;
|
||||
_soundChannel = nullptr;
|
||||
}
|
||||
|
||||
// Play the track friction sound
|
||||
@@ -100,9 +100,9 @@ void intro_update()
|
||||
// Check if logo is off the screen...ish
|
||||
if (_introStateCounter >= context_get_height() + 40) {
|
||||
// Stop the track friction sound
|
||||
if (_soundChannel != NULL) {
|
||||
if (_soundChannel != nullptr) {
|
||||
Mixer_Stop_Channel(_soundChannel);
|
||||
_soundChannel = NULL;
|
||||
_soundChannel = nullptr;
|
||||
}
|
||||
|
||||
// Play long peep scream sound
|
||||
@@ -139,9 +139,9 @@ void intro_update()
|
||||
break;
|
||||
case INTRO_STATE_CLEAR:
|
||||
// Stop any playing sound
|
||||
if (_soundChannel != NULL) {
|
||||
if (_soundChannel != nullptr) {
|
||||
Mixer_Stop_Channel(_soundChannel);
|
||||
_soundChannel = NULL;
|
||||
_soundChannel = nullptr;
|
||||
}
|
||||
|
||||
// Move to next part
|
||||
|
||||
@@ -237,7 +237,7 @@ extern "C"
|
||||
for (uint32 i = 0; i < count; i++)
|
||||
{
|
||||
uint32 imageId = baseImageId + i;
|
||||
rct_g1_element g1 = { 0 };
|
||||
rct_g1_element g1 = { nullptr };
|
||||
gfx_set_g1_element(imageId, &g1);
|
||||
drawing_engine_invalidate_image(imageId);
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ extern "C"
|
||||
|
||||
static size_t _g1ElementsCount = 0;
|
||||
static rct_g1_element * _g1Elements = nullptr;
|
||||
static rct_g1_element _g1Temp = { 0 };
|
||||
static rct_g1_element _g1Temp = { nullptr };
|
||||
bool gTinyFontAntiAliased = false;
|
||||
|
||||
/**
|
||||
|
||||
@@ -670,7 +670,7 @@ void Network::CheckDesynchronizaton()
|
||||
_desynchronised = true;
|
||||
|
||||
char str_desync[256];
|
||||
format_string(str_desync, 256, STR_MULTIPLAYER_DESYNC, NULL);
|
||||
format_string(str_desync, 256, STR_MULTIPLAYER_DESYNC, nullptr);
|
||||
|
||||
auto intent = Intent(WC_NETWORK_STATUS);
|
||||
intent.putExtra(INTENT_EXTRA_MESSAGE, std::string { str_desync });
|
||||
|
||||
@@ -136,7 +136,7 @@ sint32 find_object_in_entry_group(const rct_object_entry* entry, uint8* entry_ty
|
||||
entry_group.chunks++,
|
||||
entry_group.entries++){
|
||||
|
||||
if (*entry_group.chunks == NULL) continue;
|
||||
if (*entry_group.chunks == nullptr) continue;
|
||||
|
||||
if (object_entry_compare((rct_object_entry*)entry_group.entries, entry))break;
|
||||
}
|
||||
@@ -158,8 +158,8 @@ void get_type_entry_index(size_t index, uint8 * outObjectType, uint8 * outEntryI
|
||||
}
|
||||
}
|
||||
|
||||
if (outObjectType != NULL) *outObjectType = objectType;
|
||||
if (outEntryIndex != NULL) *outEntryIndex = (uint8)index;
|
||||
if (outObjectType != nullptr) *outObjectType = objectType;
|
||||
if (outEntryIndex != nullptr) *outEntryIndex = (uint8)index;
|
||||
}
|
||||
|
||||
const rct_object_entry * get_loaded_object_entry(size_t index)
|
||||
|
||||
@@ -343,7 +343,7 @@ extern bool gUseOriginalRidePaint;
|
||||
*/
|
||||
bool wooden_a_supports_paint_setup(paint_session * session, sint32 supportType, sint32 special, sint32 height, uint32 imageColourFlags, bool* underground)
|
||||
{
|
||||
if (underground != NULL){
|
||||
if (underground != nullptr){
|
||||
*underground = false;
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ bool wooden_a_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
sint32 z = floor2(session->Support.height + 15, 16);
|
||||
height -= z;
|
||||
if (height < 0) {
|
||||
if (underground != NULL) {
|
||||
if (underground != nullptr) {
|
||||
*underground = true;
|
||||
}
|
||||
return false;
|
||||
@@ -378,7 +378,7 @@ bool wooden_a_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
// Steep diagonal (place the correct shaped support for the slope)
|
||||
height -= 2;
|
||||
if (height < 0) {
|
||||
if (underground != NULL) {
|
||||
if (underground != nullptr) {
|
||||
*underground = true;
|
||||
}
|
||||
return false;
|
||||
@@ -401,7 +401,7 @@ bool wooden_a_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
// 1 to 3 quarters up
|
||||
height--;
|
||||
if (height < 0) {
|
||||
if (underground != NULL) {
|
||||
if (underground != nullptr) {
|
||||
*underground = true;
|
||||
}
|
||||
return false;
|
||||
@@ -459,13 +459,13 @@ bool wooden_a_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
|
||||
unk_supports_desc_bound_box bBox = byte_97B23C[special].bounding_box;
|
||||
|
||||
if (byte_97B23C[special].var_6 == 0 || session->WoodenSupportsPrependTo == NULL) {
|
||||
if (byte_97B23C[special].var_6 == 0 || session->WoodenSupportsPrependTo == nullptr) {
|
||||
sub_98197C(session, imageId, 0, 0, bBox.length.x, bBox.length.y, bBox.length.z, z, bBox.offset.x, bBox.offset.y, bBox.offset.z + z, rotation);
|
||||
hasSupports = true;
|
||||
} else {
|
||||
hasSupports = true;
|
||||
paint_struct* ps = sub_98198C(session, imageId, 0, 0, bBox.length.x, bBox.length.y, bBox.length.z, z, bBox.offset.x, bBox.offset.y, bBox.offset.z + z, rotation);
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
paint_struct* edi = session->WoodenSupportsPrependTo;
|
||||
edi->var_20 = ps;
|
||||
}
|
||||
@@ -493,12 +493,12 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
bool _9E32B1 = false;
|
||||
|
||||
if (gCurrentViewportFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS) {
|
||||
if (underground != NULL) *underground = false; // AND
|
||||
if (underground != nullptr) *underground = false; // AND
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!(session->Unk141E9DB & G141E9DB_FLAG_1)) {
|
||||
if (underground != NULL) *underground = false; // AND
|
||||
if (underground != nullptr) *underground = false; // AND
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -506,7 +506,7 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
sint16 supportLength = height - baseHeight;
|
||||
|
||||
if (supportLength < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
} else if (session->Support.slope & 0x10) {
|
||||
heightSteps -= 2;
|
||||
if (heightSteps < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
} else if ((session->Support.slope & 0x0F) != 0) {
|
||||
heightSteps -= 1;
|
||||
if (heightSteps < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -635,7 +635,7 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
|
||||
unk_supports_desc_bound_box boundBox = supportsDesc.bounding_box;
|
||||
|
||||
if (supportsDesc.var_6 == 0 || session->WoodenSupportsPrependTo == NULL) {
|
||||
if (supportsDesc.var_6 == 0 || session->WoodenSupportsPrependTo == nullptr) {
|
||||
sub_98197C(session,
|
||||
imageId | imageColourFlags,
|
||||
0, 0,
|
||||
@@ -655,14 +655,14 @@ bool wooden_b_supports_paint_setup(paint_session * session, sint32 supportType,
|
||||
get_current_rotation()
|
||||
);
|
||||
_9E32B1 = true;
|
||||
if (paintStruct != NULL) {
|
||||
if (paintStruct != nullptr) {
|
||||
session->WoodenSupportsPrependTo->var_20 = paintStruct;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (underground != NULL) *underground = false; // AND
|
||||
if (underground != nullptr) *underground = false; // AND
|
||||
return _9E32B1;
|
||||
}
|
||||
|
||||
@@ -1049,7 +1049,7 @@ bool metal_b_supports_paint_setup(paint_session * session, uint8 supportType, ui
|
||||
bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, sint32 special, sint32 height, uint32 imageColourFlags,
|
||||
rct_footpath_entry * pathEntry, bool * underground)
|
||||
{
|
||||
if (underground != NULL) {
|
||||
if (underground != nullptr) {
|
||||
*underground = false; // AND
|
||||
}
|
||||
|
||||
@@ -1064,7 +1064,7 @@ bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, si
|
||||
uint16 baseHeight = ceil2(session->Support.height, 16);
|
||||
sint32 supportLength = height - baseHeight;
|
||||
if (supportLength < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1085,7 +1085,7 @@ bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, si
|
||||
} else if (session->Support.slope & 0x10) {
|
||||
heightSteps -= 2;
|
||||
if (heightSteps < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1116,7 +1116,7 @@ bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, si
|
||||
} else if (session->Support.slope & 0x0F) {
|
||||
heightSteps -= 1;
|
||||
if (heightSteps < 0) {
|
||||
if (underground != NULL) *underground = true; // STC
|
||||
if (underground != nullptr) *underground = true; // STC
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1174,7 +1174,7 @@ bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, si
|
||||
unk_supports_desc supportsDesc = byte_98D8D4[specialIndex];
|
||||
unk_supports_desc_bound_box boundBox = supportsDesc.bounding_box;
|
||||
|
||||
if (supportsDesc.var_6 == 0 || session->WoodenSupportsPrependTo == NULL) {
|
||||
if (supportsDesc.var_6 == 0 || session->WoodenSupportsPrependTo == nullptr) {
|
||||
sub_98197C(session,
|
||||
imageId | imageColourFlags,
|
||||
0, 0,
|
||||
@@ -1194,13 +1194,13 @@ bool path_a_supports_paint_setup(paint_session * session, sint32 supportType, si
|
||||
get_current_rotation()
|
||||
);
|
||||
hasSupports = true;
|
||||
if (paintStruct != NULL) {
|
||||
if (paintStruct != nullptr) {
|
||||
session->WoodenSupportsPrependTo->var_20 = paintStruct;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (underground != NULL) *underground = false; // AND
|
||||
if (underground != nullptr) *underground = false; // AND
|
||||
|
||||
return hasSupports;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ void banner_paint(paint_session * session, uint8 direction, sint32 height, rct_t
|
||||
|
||||
rct_scenery_entry* banner_scenery = get_banner_entry(gBanners[tile_element->properties.banner.index].type);
|
||||
|
||||
if (banner_scenery == NULL) {
|
||||
if (banner_scenery == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ static void ride_entrance_exit_paint(paint_session * session, uint8 direction, s
|
||||
if (image_id == 0) {
|
||||
image_id = SPRITE_ID_PALETTE_COLOUR_1(COLOUR_SATURATED_BROWN);
|
||||
}
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, image_id, NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, image_id, nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
|
||||
@@ -214,13 +214,13 @@ static void park_entrance_paint(paint_session * session, uint8 direction, sint32
|
||||
|
||||
switch (part_index){
|
||||
case 0:
|
||||
if (path_entry != NULL) {
|
||||
if (path_entry != nullptr) {
|
||||
image_id = (path_entry->image + 5 * (1 + (direction & 1))) | ghost_id;
|
||||
sub_98197C(session, image_id, 0, 0, 32, 0x1C, 0, height, 0, 2, height, get_current_rotation());
|
||||
}
|
||||
|
||||
entrance = (rct_entrance_type*)object_entry_groups[OBJECT_TYPE_PARK_ENTRANCE].chunks[0];
|
||||
if (entrance == NULL)
|
||||
if (entrance == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ static void park_entrance_paint(paint_session * session, uint8 direction, sint32
|
||||
case 1:
|
||||
case 2:
|
||||
entrance = (rct_entrance_type*)object_entry_groups[OBJECT_TYPE_PARK_ENTRANCE].chunks[0];
|
||||
if (entrance == NULL)
|
||||
if (entrance == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -280,7 +280,7 @@ static void park_entrance_paint(paint_session * session, uint8 direction, sint32
|
||||
if (image_id == 0) {
|
||||
image_id = SPRITE_ID_PALETTE_COLOUR_1(COLOUR_SATURATED_BROWN);
|
||||
}
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, image_id, NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, image_id, nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 80, 0x20);
|
||||
|
||||
@@ -68,24 +68,24 @@ static void fence_paint_door(paint_session * session, uint32 imageId,
|
||||
paint_struct * ps;
|
||||
|
||||
ps = sub_98197C(session, imageId, (sint8) offset.x, (sint8) offset.y, boundsR1.x, boundsR1.y, (sint8) boundsR1.z, offset.z, boundsR1_.x, boundsR1_.y, boundsR1_.z, get_current_rotation());
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
ps->tertiary_colour = tertiaryColour;
|
||||
}
|
||||
|
||||
ps = sub_98197C(session, imageId + 1, (sint8) offset.x, (sint8) offset.y, boundsR2.x, boundsR2.y, (sint8) boundsR2.z, offset.z, boundsR2_.x, boundsR2_.y, boundsR2_.z, get_current_rotation());
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
ps->tertiary_colour = tertiaryColour;
|
||||
}
|
||||
} else {
|
||||
paint_struct * ps;
|
||||
|
||||
ps = sub_98197C(session, imageId, (sint8) offset.x, (sint8) offset.y, boundsL1.x, boundsL1.y, (sint8) boundsL1.z, offset.z, boundsL1_.x, boundsL1_.y, boundsL1_.z, get_current_rotation());
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
ps->tertiary_colour = tertiaryColour;
|
||||
}
|
||||
|
||||
ps = sub_98199C(session, imageId + 1, (sint8) offset.x, (sint8) offset.y, boundsL1.x, boundsL1.y, (sint8) boundsL1.z, offset.z, boundsL1_.x, boundsL1_.y, boundsL1_.z, get_current_rotation());
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
ps->tertiary_colour = tertiaryColour;
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ static void fence_paint_wall(paint_session * session, uint32 frameNum, const rct
|
||||
}
|
||||
|
||||
paint_struct * paint = sub_98197C(session, imageId, (sint8)offset.x, (sint8)offset.y, bounds.x, bounds.y, (sint8)bounds.z, offset.z, boundsOffset.x, boundsOffset.y, boundsOffset.z, get_current_rotation());
|
||||
if (paint != NULL) {
|
||||
if (paint != nullptr) {
|
||||
paint->tertiary_colour = tertiaryColour;
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@ void fence_paint(paint_session * session, uint8 direction, sint32 height, rct_ti
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_WALL;
|
||||
|
||||
rct_scenery_entry * sceneryEntry = get_wall_entry(tile_element->properties.wall.type);
|
||||
if (sceneryEntry == NULL) {
|
||||
if (sceneryEntry == nullptr) {
|
||||
return;
|
||||
}
|
||||
uint32 frameNum = 0;
|
||||
|
||||
@@ -48,7 +48,7 @@ static void large_scenery_paint_supports(paint_session * session, uint8 directio
|
||||
supportImageColourFlags = dword_F4387C;
|
||||
}
|
||||
|
||||
wooden_b_supports_paint_setup(session, (direction & 1), ax, supportHeight, supportImageColourFlags, NULL);
|
||||
wooden_b_supports_paint_setup(session, (direction & 1), ax, supportHeight, supportImageColourFlags, nullptr);
|
||||
|
||||
sint32 clearanceHeight = ceil2(tileElement->clearance_height * 8 + 15, 16);
|
||||
|
||||
@@ -190,7 +190,7 @@ void large_scenery_paint(paint_session * session, uint8 direction, uint16 height
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_LARGE_SCENERY;
|
||||
uint32 sequenceNum = scenery_large_get_sequence(tileElement);
|
||||
rct_scenery_entry *entry = get_large_scenery_entry(scenery_large_get_type(tileElement));
|
||||
if (entry == NULL)
|
||||
if (entry == nullptr)
|
||||
return;
|
||||
|
||||
uint32 image_id = (sequenceNum << 2) + entry->image + 4 + direction;
|
||||
@@ -297,8 +297,8 @@ void large_scenery_paint(paint_session * session, uint8 direction, uint16 height
|
||||
utf8 str1[64] = {0};
|
||||
utf8 *dst = str1;
|
||||
utf8 *srcold = src;
|
||||
utf8 *spacesrc = 0;
|
||||
utf8 *spacedst = 0;
|
||||
utf8 *spacesrc = nullptr;
|
||||
utf8 *spacedst = nullptr;
|
||||
sint32 w = 0;
|
||||
uint32 codepoint = utf8_get_next(src, (const utf8**)&src);
|
||||
do {
|
||||
@@ -307,7 +307,7 @@ void large_scenery_paint(paint_session * session, uint8 direction, uint16 height
|
||||
spacesrc = src;
|
||||
spacedst = dst;
|
||||
}
|
||||
} while(w <= text->max_width && (dst = utf8_write_codepoint(dst, codepoint)) != NULL && (srcold = src) != NULL && (codepoint = utf8_get_next(src, (const utf8**)&src)) != '\0');
|
||||
} while(w <= text->max_width && (dst = utf8_write_codepoint(dst, codepoint)) != nullptr && (srcold = src) != nullptr && (codepoint = utf8_get_next(src, (const utf8**)&src)) != '\0');
|
||||
src = srcold;
|
||||
if (spacesrc && codepoint) {
|
||||
*spacedst = 0;
|
||||
|
||||
@@ -709,7 +709,7 @@ void path_paint(paint_session * session, uint8 direction, uint16 height, rct_til
|
||||
rct_tile_element * surface = map_get_surface_element_at(x / 32, y / 32);
|
||||
|
||||
uint16 bl = height / 8;
|
||||
if (surface == NULL) {
|
||||
if (surface == nullptr) {
|
||||
word_F3F038 = true;
|
||||
} else if (surface->base_height != bl) {
|
||||
word_F3F038 = true;
|
||||
@@ -771,7 +771,7 @@ void path_paint(paint_session * session, uint8 direction, uint16 height, rct_til
|
||||
uint8 pathType = footpath_element_get_type(tile_element);
|
||||
rct_footpath_entry * footpathEntry = get_footpath_entry(pathType);
|
||||
|
||||
if (footpathEntry != NULL) {
|
||||
if (footpathEntry != nullptr) {
|
||||
if (footpathEntry->support_type == FOOTPATH_ENTRY_SUPPORT_TYPE_POLE) {
|
||||
path_paint_pole_support(session, tile_element, height, footpathEntry, word_F3F038, imageFlags, sceneryImageFlags);
|
||||
}
|
||||
@@ -878,9 +878,9 @@ void path_paint_box_support(paint_session * session, rct_tile_element * tileElem
|
||||
}
|
||||
|
||||
if (byte_98D8A4[edges] == 0) {
|
||||
path_a_supports_paint_setup(session, 0, ax, height, imageFlags, footpathEntry, NULL);
|
||||
path_a_supports_paint_setup(session, 0, ax, height, imageFlags, footpathEntry, nullptr);
|
||||
} else {
|
||||
path_a_supports_paint_setup(session, 1, ax, height, imageFlags, footpathEntry, NULL);
|
||||
path_a_supports_paint_setup(session, 1, ax, height, imageFlags, footpathEntry, nullptr);
|
||||
}
|
||||
|
||||
height += 32;
|
||||
|
||||
@@ -66,7 +66,7 @@ void scenery_paint(paint_session * session, uint8 direction, sint32 height, rct_
|
||||
|
||||
rct_scenery_entry *entry = get_small_scenery_entry(tileElement->properties.scenery.type);
|
||||
|
||||
if (entry == NULL)
|
||||
if (entry == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -291,9 +291,9 @@ void scenery_paint(paint_session * session, uint8 direction, sint32 height, rct_
|
||||
supportImageColourFlags = dword_F64EB0;
|
||||
}
|
||||
if (direction & 1) {
|
||||
wooden_b_supports_paint_setup(session, 1, ax, supportHeight, supportImageColourFlags, NULL);
|
||||
wooden_b_supports_paint_setup(session, 1, ax, supportHeight, supportImageColourFlags, nullptr);
|
||||
} else {
|
||||
wooden_b_supports_paint_setup(session, 0, ax, supportHeight, supportImageColourFlags, NULL);
|
||||
wooden_b_supports_paint_setup(session, 0, ax, supportHeight, supportImageColourFlags, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ static uint8 viewport_surface_paint_setup_get_relative_slope(rct_tile_element *
|
||||
*/
|
||||
static void viewport_surface_smoothen_edge(paint_session * session, enum edge_t edge, struct tile_descriptor self, struct tile_descriptor neighbour)
|
||||
{
|
||||
if (neighbour.tile_element == NULL)
|
||||
if (neighbour.tile_element == nullptr)
|
||||
return;
|
||||
|
||||
uint32 maskImageBase = 0;
|
||||
@@ -775,7 +775,7 @@ static void viewport_surface_draw_tile_side_top(paint_session * session, enum ed
|
||||
regs.dl = height;
|
||||
|
||||
// save ecx
|
||||
if (neighbour.tile_element == NULL)
|
||||
if (neighbour.tile_element == nullptr)
|
||||
{
|
||||
regs.ah = 1;
|
||||
regs.ch = 1;
|
||||
@@ -936,14 +936,14 @@ void surface_paint(paint_session * session, uint8 direction, uint16 height, rct_
|
||||
|
||||
tile_descriptor& descriptor = tileDescriptors[i + 1];
|
||||
|
||||
descriptor.tile_element = NULL;
|
||||
descriptor.tile_element = nullptr;
|
||||
if (position.x > 0x2000 || position.y > 0x2000)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
rct_tile_element * surfaceElement = map_get_surface_element_at(position.x / 32, position.y / 32);
|
||||
if (surfaceElement == NULL)
|
||||
if (surfaceElement == nullptr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -244,8 +244,8 @@ static void sub_68B3FB(paint_session * session, sint32 x, sint32 y)
|
||||
if (height != previousHeight)
|
||||
{
|
||||
previousHeight = height;
|
||||
session->PathElementOnSameHeight = 0;
|
||||
session->TrackElementOnSameHeight = 0;
|
||||
session->PathElementOnSameHeight = nullptr;
|
||||
session->TrackElementOnSameHeight = nullptr;
|
||||
rct_tile_element * tile_element_sub_iterator = tile_element;
|
||||
while (!tile_element_is_last_for_tile(tile_element_sub_iterator++))
|
||||
{
|
||||
@@ -346,7 +346,7 @@ static void sub_68B3FB(paint_session * session, sint32 x, sint32 y)
|
||||
sint32 xOffset = sy * 10;
|
||||
sint32 yOffset = -22 + sx * 10;
|
||||
paint_struct * ps = sub_98197C(session, 5504 | imageColourFlats, xOffset, yOffset, 10, 10, 1, segmentHeight, xOffset + 1, yOffset + 16, segmentHeight, get_current_rotation());
|
||||
if (ps != NULL) {
|
||||
if (ps != nullptr) {
|
||||
ps->flags &= PAINT_STRUCT_FLAG_IS_MASKED;
|
||||
ps->colour_image_id = COLOUR_BORDEAUX_RED;
|
||||
}
|
||||
|
||||
+70
-70
@@ -120,7 +120,7 @@ enum
|
||||
F1EE18_RIDE_ENTRANCE = 1 << 3,
|
||||
};
|
||||
|
||||
static void * _crowdSoundChannel = NULL;
|
||||
static void * _crowdSoundChannel = nullptr;
|
||||
|
||||
static void sub_68F41A(rct_peep * peep, sint32 index);
|
||||
static void peep_update(rct_peep * peep);
|
||||
@@ -525,12 +525,12 @@ static const LocationXY16 SpiralSlideWalkingPath[64] = {
|
||||
rct_peep * try_get_guest(uint16 spriteIndex)
|
||||
{
|
||||
rct_sprite * sprite = try_get_sprite(spriteIndex);
|
||||
if (sprite == NULL)
|
||||
return NULL;
|
||||
if (sprite == nullptr)
|
||||
return nullptr;
|
||||
if (sprite->unknown.sprite_identifier != SPRITE_IDENTIFIER_PEEP)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
if (sprite->peep.type != PEEP_TYPE_GUEST)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
return &sprite->peep;
|
||||
}
|
||||
|
||||
@@ -620,7 +620,7 @@ static uint8 peep_assess_surroundings(sint16 centre_x, sint16 centre_y, sint16 c
|
||||
break;
|
||||
|
||||
scenery = get_footpath_item_entry(footpath_element_get_path_scenery_index(tileElement));
|
||||
if (scenery == NULL)
|
||||
if (scenery == nullptr)
|
||||
{
|
||||
return PEEP_THOUGHT_TYPE_NONE;
|
||||
}
|
||||
@@ -739,7 +739,7 @@ static void peep_leave_park(rct_peep * peep)
|
||||
peep_insert_new_thought(peep, PEEP_THOUGHT_TYPE_GO_HOME, 0xFF);
|
||||
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
window_event_invalidate_call(w);
|
||||
window_invalidate_by_number(WC_PEEP, peep->sprite_index);
|
||||
}
|
||||
@@ -1989,7 +1989,7 @@ void peep_update_sprite_type(rct_peep * peep)
|
||||
void peep_window_state_update(rct_peep * peep)
|
||||
{
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
window_event_invalidate_call(w);
|
||||
|
||||
if (peep->type == PEEP_TYPE_GUEST)
|
||||
@@ -2286,10 +2286,10 @@ static void peep_update_falling(rct_peep * peep)
|
||||
|
||||
// If not drowning then falling. Note: peeps 'fall' after leaving a ride/enter the park.
|
||||
rct_tile_element * tile_element = map_get_first_element_at(peep->x / 32, peep->y / 32);
|
||||
rct_tile_element * saved_map = NULL;
|
||||
rct_tile_element * saved_map = nullptr;
|
||||
sint32 saved_height = 0;
|
||||
|
||||
if (tile_element != NULL)
|
||||
if (tile_element != nullptr)
|
||||
{
|
||||
do
|
||||
{
|
||||
@@ -2345,7 +2345,7 @@ static void peep_update_falling(rct_peep * peep)
|
||||
}
|
||||
|
||||
// This will be null if peep is falling
|
||||
if (saved_map == NULL)
|
||||
if (saved_map == nullptr)
|
||||
{
|
||||
invalidate_sprite_2((rct_sprite *)peep);
|
||||
if (peep->z <= 1)
|
||||
@@ -2621,7 +2621,7 @@ static void peep_go_to_ride_entrance(rct_peep * peep, Ride * ride)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
x *= 32;
|
||||
y *= 32;
|
||||
@@ -2633,7 +2633,7 @@ static void peep_go_to_ride_entrance(rct_peep * peep, Ride * ride)
|
||||
|
||||
uint8 shift_multiplier = 21;
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
if (rideEntry != NULL)
|
||||
if (rideEntry != nullptr)
|
||||
{
|
||||
if (rideEntry->vehicles[rideEntry->default_vehicle].flags & VEHICLE_ENTRY_FLAG_MINI_GOLF ||
|
||||
rideEntry->vehicles[rideEntry->default_vehicle].flags & (VEHICLE_ENTRY_FLAG_28 | VEHICLE_ENTRY_FLAG_30))
|
||||
@@ -2873,7 +2873,7 @@ static void peep_update_ride_sub_state_1(rct_peep * peep)
|
||||
if (peep_update_action(&x, &y, &xy_distance, peep))
|
||||
{
|
||||
uint16 distanceThreshold = 16;
|
||||
if (ride_entry != NULL)
|
||||
if (ride_entry != nullptr)
|
||||
{
|
||||
uint8 vehicle = ride_entry->default_vehicle;
|
||||
if (ride_entry->vehicles[vehicle].flags & VEHICLE_ENTRY_FLAG_MINI_GOLF ||
|
||||
@@ -2911,7 +2911,7 @@ static void peep_update_ride_sub_state_1(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 direction_entrance = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction_entrance = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
if (ride->type == RIDE_TYPE_MAZE)
|
||||
{
|
||||
@@ -2952,7 +2952,7 @@ static void peep_update_ride_sub_state_1(rct_peep * peep)
|
||||
|
||||
tile_element = ride_get_station_start_track_element(ride, peep->current_ride_station);
|
||||
|
||||
uint8 direction_track = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction_track = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
peep->var_37 = (direction_entrance << 2) | (direction_track << 4);
|
||||
|
||||
@@ -2997,14 +2997,14 @@ static void peep_update_ride_sub_state_1(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 direction_entrance = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction_entrance = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
x = ride->station_starts[peep->current_ride_station].x;
|
||||
y = ride->station_starts[peep->current_ride_station].y;
|
||||
|
||||
tile_element = ride_get_station_start_track_element(ride, peep->current_ride_station);
|
||||
|
||||
uint8 direction_track = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction_track = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
vehicle = GET_VEHICLE(ride->vehicles[peep->current_train]);
|
||||
ride_entry = get_ride_entry(vehicle->ride_subtype);
|
||||
@@ -3113,7 +3113,7 @@ static void peep_go_to_ride_exit(rct_peep * peep, Ride * ride, sint16 x, sint16
|
||||
sint16 shift_multiplier = 20;
|
||||
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
if (rideEntry != NULL)
|
||||
if (rideEntry != nullptr)
|
||||
{
|
||||
rct_ride_entry_vehicle * vehicle_entry = &rideEntry->vehicles[rideEntry->default_vehicle];
|
||||
if (vehicle_entry->flags & VEHICLE_ENTRY_FLAG_MINI_GOLF ||
|
||||
@@ -3214,7 +3214,7 @@ static void peep_update_ride_sub_state_2_rejoin_queue(rct_peep * peep, Ride * ri
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 direction_entrance = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 direction_entrance = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
x *= 32;
|
||||
y *= 32;
|
||||
@@ -3454,7 +3454,7 @@ static void peep_update_ride_sub_state_7(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
exit_direction ^= (1 << 1);
|
||||
|
||||
if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_16))
|
||||
@@ -3485,7 +3485,7 @@ static void peep_update_ride_sub_state_7(rct_peep * peep)
|
||||
|
||||
ride_entry = get_ride_entry(ride->subtype);
|
||||
|
||||
if (ride_entry != NULL)
|
||||
if (ride_entry != nullptr)
|
||||
{
|
||||
vehicle_entry = &ride_entry->vehicles[ride_entry->default_vehicle];
|
||||
|
||||
@@ -3549,14 +3549,14 @@ static void peep_update_ride_sub_state_7(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
x = ride->station_starts[peep->current_ride_station].x;
|
||||
y = ride->station_starts[peep->current_ride_station].y;
|
||||
|
||||
tile_element = ride_get_station_start_track_element(ride, peep->current_ride_station);
|
||||
|
||||
uint8 station_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 station_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
vehicle = GET_VEHICLE(ride->vehicles[peep->current_train]);
|
||||
|
||||
@@ -3626,7 +3626,7 @@ static void peep_update_ride_prepare_for_state_9(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
x *= 32;
|
||||
y *= 32;
|
||||
@@ -3639,7 +3639,7 @@ static void peep_update_ride_prepare_for_state_9(rct_peep * peep)
|
||||
sint16 shift_multiplier = 20;
|
||||
|
||||
rct_ride_entry * ride_type = get_ride_entry(ride->subtype);
|
||||
if (ride_type != NULL)
|
||||
if (ride_type != nullptr)
|
||||
{
|
||||
rct_ride_entry_vehicle * vehicle_entry = &ride_type->vehicles[ride_type->default_vehicle];
|
||||
if (vehicle_entry->flags & (VEHICLE_ENTRY_FLAG_28 | VEHICLE_ENTRY_FLAG_30))
|
||||
@@ -3873,7 +3873,7 @@ static void peep_update_ride_sub_state_13(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
exit_direction ^= (1 << 1);
|
||||
|
||||
x *= 32;
|
||||
@@ -3950,7 +3950,7 @@ static void peep_update_ride_sub_state_14(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
|
||||
peep->var_37 = (exit_direction * 4) | (peep->var_37 & 0x30) | 1;
|
||||
x = ride->station_starts[peep->current_ride_station].x;
|
||||
@@ -4149,7 +4149,7 @@ static void peep_update_ride_sub_state_16(rct_peep * peep)
|
||||
|
||||
rct_tile_element * tile_element = ride_get_station_exit_element(ride, x, y, z);
|
||||
|
||||
uint8 exit_direction = (tile_element == NULL ? 0 : tile_element_get_direction(tile_element));
|
||||
uint8 exit_direction = (tile_element == nullptr ? 0 : tile_element_get_direction(tile_element));
|
||||
exit_direction ^= (1 << 1);
|
||||
|
||||
x *= 32;
|
||||
@@ -4743,7 +4743,7 @@ static bool peep_update_fixing_sub_state_1(bool firstRun, rct_peep * peep, Ride
|
||||
if (!firstRun)
|
||||
{
|
||||
rct_vehicle * vehicle = ride_get_broken_vehicle(ride);
|
||||
if (vehicle == NULL)
|
||||
if (vehicle == nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -4823,7 +4823,7 @@ static bool peep_update_fixing_sub_state_2345(bool firstRun, rct_peep * peep, Ri
|
||||
}
|
||||
|
||||
rct_vehicle * vehicle = ride_get_broken_vehicle(ride);
|
||||
if (vehicle == NULL)
|
||||
if (vehicle == nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -4863,7 +4863,7 @@ static bool peep_update_fixing_sub_state_6(bool firstRun, rct_peep * peep, Ride
|
||||
}
|
||||
|
||||
rct_vehicle * vehicle = ride_get_broken_vehicle(ride);
|
||||
if (vehicle == NULL)
|
||||
if (vehicle == nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -4906,7 +4906,7 @@ static bool peep_update_fixing_sub_state_7(bool firstRun, rct_peep * peep, Ride
|
||||
uint16 stationY = stationPosition.y * 32;
|
||||
|
||||
rct_tile_element * tileElement = map_get_track_element_at(stationX, stationY, stationZ);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
log_error("Couldn't find tile_element");
|
||||
return false;
|
||||
@@ -4998,7 +4998,7 @@ static bool peep_update_fixing_sub_state_9(bool firstRun, rct_peep * peep, Ride
|
||||
input.x = stationPosition.x * 32;
|
||||
input.y = stationPosition.y * 32;
|
||||
input.element = map_get_track_element_at_from_ride(input.x, input.y, stationZ, peep->current_ride);
|
||||
if (input.element == NULL)
|
||||
if (input.element == nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -6779,7 +6779,7 @@ static sint32 peep_update_patrolling_find_watering(rct_peep * peep)
|
||||
rct_tile_element * tile_element = map_get_first_element_at(x / 32, y / 32);
|
||||
|
||||
// This seems to happen in some SV4 files.
|
||||
if (tile_element == NULL)
|
||||
if (tile_element == nullptr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -6847,7 +6847,7 @@ static sint32 peep_update_patrolling_find_bin(rct_peep * peep)
|
||||
return 0;
|
||||
|
||||
rct_tile_element * tile_element = map_get_first_element_at(peep->next_x / 32, peep->next_y / 32);
|
||||
if (tile_element == NULL)
|
||||
if (tile_element == nullptr)
|
||||
return 0;
|
||||
|
||||
for (;; tile_element++)
|
||||
@@ -6945,7 +6945,7 @@ static sint32 peep_update_patrolling_find_sweeping(rct_peep * peep)
|
||||
|
||||
uint16 sprite_id = sprite_get_first_in_quadrant(peep->x, peep->y);
|
||||
|
||||
for (rct_sprite * sprite = NULL; sprite_id != SPRITE_INDEX_NULL; sprite_id = sprite->unknown.next_in_quadrant)
|
||||
for (rct_sprite * sprite = nullptr; sprite_id != SPRITE_INDEX_NULL; sprite_id = sprite->unknown.next_in_quadrant)
|
||||
{
|
||||
|
||||
sprite = get_sprite(sprite_id);
|
||||
@@ -6989,7 +6989,7 @@ static void peep_update_patrolling(rct_peep * peep)
|
||||
{
|
||||
rct_tile_element * tile_element = map_get_surface_element_at(peep->next_x / 32, peep->next_y / 32);
|
||||
|
||||
if (tile_element != NULL)
|
||||
if (tile_element != nullptr)
|
||||
{
|
||||
sint32 water_height = map_get_water_height(tile_element);
|
||||
if (water_height)
|
||||
@@ -7687,10 +7687,10 @@ void peep_problem_warnings_update()
|
||||
|
||||
void peep_stop_crowd_noise()
|
||||
{
|
||||
if (_crowdSoundChannel != NULL)
|
||||
if (_crowdSoundChannel != nullptr)
|
||||
{
|
||||
Mixer_Stop_Channel(_crowdSoundChannel);
|
||||
_crowdSoundChannel = NULL;
|
||||
_crowdSoundChannel = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7715,7 +7715,7 @@ void peep_update_crowd_noise()
|
||||
return;
|
||||
|
||||
viewport = g_music_tracking_viewport;
|
||||
if (viewport == NULL)
|
||||
if (viewport == nullptr)
|
||||
return;
|
||||
|
||||
// Count the number of peeps visible
|
||||
@@ -7746,10 +7746,10 @@ void peep_update_crowd_noise()
|
||||
if (visiblePeeps < 0)
|
||||
{
|
||||
// Mute crowd noise
|
||||
if (_crowdSoundChannel != NULL)
|
||||
if (_crowdSoundChannel != nullptr)
|
||||
{
|
||||
Mixer_Stop_Channel(_crowdSoundChannel);
|
||||
_crowdSoundChannel = NULL;
|
||||
_crowdSoundChannel = nullptr;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -7763,15 +7763,15 @@ void peep_update_crowd_noise()
|
||||
volume = (((207360000 - volume) >> viewport->zoom) - 207360000) / 65536 - 150;
|
||||
|
||||
// Load and play crowd noise if needed and set volume
|
||||
if (_crowdSoundChannel == NULL)
|
||||
if (_crowdSoundChannel == nullptr)
|
||||
{
|
||||
_crowdSoundChannel = Mixer_Play_Music(PATH_ID_CSS2, MIXER_LOOP_INFINITE, false);
|
||||
if (_crowdSoundChannel != NULL)
|
||||
if (_crowdSoundChannel != nullptr)
|
||||
{
|
||||
Mixer_Channel_SetGroup(_crowdSoundChannel, MIXER_GROUP_SOUND);
|
||||
}
|
||||
}
|
||||
if (_crowdSoundChannel != NULL)
|
||||
if (_crowdSoundChannel != nullptr)
|
||||
{
|
||||
Mixer_Channel_Volume(_crowdSoundChannel, DStoMixerVolume(volume));
|
||||
}
|
||||
@@ -7914,7 +7914,7 @@ static const uint8 tshirt_colours[] = {
|
||||
rct_peep * peep_generate(sint32 x, sint32 y, sint32 z)
|
||||
{
|
||||
if (gSpriteListCount[SPRITE_LIST_NULL] < 400)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
rct_peep * peep = (rct_peep *)create_sprite(1);
|
||||
|
||||
@@ -9358,7 +9358,7 @@ static sint32 peep_interact_with_shop(rct_peep * peep, sint16 x, sint16 y, rct_t
|
||||
ride->total_profit += cost;
|
||||
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
|
||||
gCommandExpenditureType = RCT_EXPENDITURE_TYPE_PARK_RIDE_TICKETS;
|
||||
peep_spend_money(peep, NULL, cost);
|
||||
peep_spend_money(peep, nullptr, cost);
|
||||
}
|
||||
peep->destination_x = (x & 0xFFE0) + 16;
|
||||
peep->destination_y = (y & 0xFFE0) + 16;
|
||||
@@ -9515,24 +9515,24 @@ static rct_tile_element * get_banner_on_path(rct_tile_element * path_element)
|
||||
// This is an improved version of original.
|
||||
// That only checked for one fence in the way.
|
||||
if (tile_element_is_last_for_tile(path_element))
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
rct_tile_element * bannerElement = path_element + 1;
|
||||
do
|
||||
{
|
||||
// Path on top, so no banners
|
||||
if (tile_element_get_type(bannerElement) == TILE_ELEMENT_TYPE_PATH)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
// Found a banner
|
||||
if (tile_element_get_type(bannerElement) == TILE_ELEMENT_TYPE_BANNER)
|
||||
return bannerElement;
|
||||
// Last element so there cant be any other banners
|
||||
if (tile_element_is_last_for_tile(bannerElement))
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
} while (bannerElement++);
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static sint32 banner_clear_path_edges(rct_tile_element * tileElement, sint32 edges)
|
||||
@@ -9540,12 +9540,12 @@ static sint32 banner_clear_path_edges(rct_tile_element * tileElement, sint32 edg
|
||||
if (_peepPathFindIsStaff)
|
||||
return edges;
|
||||
rct_tile_element * bannerElement = get_banner_on_path(tileElement);
|
||||
if (bannerElement != NULL)
|
||||
if (bannerElement != nullptr)
|
||||
{
|
||||
do
|
||||
{
|
||||
edges &= bannerElement->properties.banner.flags;
|
||||
} while ((bannerElement = get_banner_on_path(bannerElement)) != NULL);
|
||||
} while ((bannerElement = get_banner_on_path(bannerElement)) != nullptr);
|
||||
}
|
||||
return edges;
|
||||
}
|
||||
@@ -10583,7 +10583,7 @@ sint32 peep_pathfind_choose_direction(sint16 x, sint16 y, uint8 z, rct_peep * pe
|
||||
* EXPECT to experience path finding irregularities due to those paths!
|
||||
* In particular common edges at different heights will not work
|
||||
* in a useful way. Simply do not do it! :-) */
|
||||
rct_tile_element * first_tile_element = NULL;
|
||||
rct_tile_element * first_tile_element = nullptr;
|
||||
|
||||
bool found = false;
|
||||
uint8 permitted_edges = 0;
|
||||
@@ -10595,7 +10595,7 @@ sint32 peep_pathfind_choose_direction(sint16 x, sint16 y, uint8 z, rct_peep * pe
|
||||
if (tile_element_get_type(dest_tile_element) != TILE_ELEMENT_TYPE_PATH)
|
||||
continue;
|
||||
found = true;
|
||||
if (first_tile_element == NULL)
|
||||
if (first_tile_element == nullptr)
|
||||
{
|
||||
first_tile_element = dest_tile_element;
|
||||
}
|
||||
@@ -11107,7 +11107,7 @@ static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z)
|
||||
LocationXY16 result = { 0, 0 };
|
||||
rct_tile_element * tileElement = map_get_first_element_at(*x / 32, *y / 32);
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -11129,8 +11129,8 @@ static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z)
|
||||
return;
|
||||
|
||||
uint8 direction = tile_element_get_direction_with_offset(tileElement, 2);
|
||||
rct_tile_element * lastPathElement = NULL;
|
||||
rct_tile_element * firstPathElement = NULL;
|
||||
rct_tile_element * lastPathElement = nullptr;
|
||||
rct_tile_element * firstPathElement = nullptr;
|
||||
|
||||
sint16 baseZ = tileElement->base_height;
|
||||
sint16 nextX = *x;
|
||||
@@ -11200,7 +11200,7 @@ static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z)
|
||||
if (!(tileElement->properties.path.edges & (1 << (direction ^ (1 << 1)))))
|
||||
break;
|
||||
|
||||
if (firstPathElement == NULL)
|
||||
if (firstPathElement == nullptr)
|
||||
firstPathElement = tileElement;
|
||||
|
||||
// More queue to go.
|
||||
@@ -11225,7 +11225,7 @@ static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z)
|
||||
return;
|
||||
|
||||
tileElement = lastPathElement;
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
return;
|
||||
|
||||
if (!footpath_element_is_queue(tileElement))
|
||||
@@ -11262,7 +11262,7 @@ static sint32 guest_path_finding(rct_peep * peep)
|
||||
z = peep->next_z;
|
||||
|
||||
rct_tile_element * tileElement = map_get_path_element_at(x / 32, y / 32, z);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -11659,7 +11659,7 @@ static sint32 peep_perform_next_action(rct_peep * peep)
|
||||
}
|
||||
|
||||
tileElement = map_get_surface_element_at(x / 32, y / 32);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
return peep_return_to_centre_of_tile(peep);
|
||||
|
||||
sint16 water_height = map_get_water_height(tileElement);
|
||||
@@ -11692,7 +11692,7 @@ static void peep_spend_money(rct_peep * peep, money16 * peep_expend_type, money3
|
||||
|
||||
peep->cash_in_pocket = Math::Max(0, peep->cash_in_pocket - amount);
|
||||
peep->cash_spent += amount;
|
||||
if (peep_expend_type != NULL)
|
||||
if (peep_expend_type != nullptr)
|
||||
{
|
||||
*peep_expend_type += (money16)amount;
|
||||
}
|
||||
@@ -12054,7 +12054,7 @@ static void peep_on_exit_ride(rct_peep * peep, sint32 rideIndex)
|
||||
peep_reset_pathfind_goal(peep);
|
||||
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
widget_invalidate(w, WC_PEEP__WIDX_ACTION_LBL);
|
||||
@@ -13042,7 +13042,7 @@ static void peep_reset_ride_heading(rct_peep * peep)
|
||||
|
||||
peep->guest_heading_to_ride_id = 255;
|
||||
w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
widget_invalidate(w, WC_PEEP__WIDX_ACTION_LBL);
|
||||
@@ -13595,7 +13595,7 @@ static void peep_pick_ride_to_go_on(rct_peep * peep)
|
||||
|
||||
// Invalidate windows
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
widget_invalidate(w, WC_PEEP__WIDX_ACTION_LBL);
|
||||
@@ -13725,7 +13725,7 @@ static void peep_head_for_nearest_ride_type(rct_peep * peep, sint32 rideType)
|
||||
|
||||
// Invalidate windows
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
widget_invalidate(w, WC_PEEP__WIDX_ACTION_LBL);
|
||||
@@ -13857,7 +13857,7 @@ static void peep_head_for_nearest_ride_with_flags(rct_peep * peep, sint32 rideTy
|
||||
|
||||
// Invalidate windows
|
||||
rct_window * w = window_find_by_number(WC_PEEP, peep->sprite_index);
|
||||
if (w != NULL)
|
||||
if (w != nullptr)
|
||||
{
|
||||
window_event_invalidate_call(w);
|
||||
window_invalidate(w);
|
||||
@@ -14291,7 +14291,7 @@ void peep_autoposition(rct_peep * newPeep)
|
||||
sint16 x, y, z;
|
||||
uint32 count = 0;
|
||||
uint16 sprite_index;
|
||||
rct_peep * guest = NULL;
|
||||
rct_peep * guest = nullptr;
|
||||
|
||||
// Count number of walking guests
|
||||
FOR_ALL_GUESTS(sprite_index, guest)
|
||||
|
||||
@@ -122,7 +122,7 @@ static inline void staff_autoposition_new_staff_member(rct_peep * newPeep)
|
||||
sint16 x, y, z;
|
||||
uint32 count = 0;
|
||||
uint16 sprite_index;
|
||||
rct_peep * guest = NULL;
|
||||
rct_peep * guest = nullptr;
|
||||
|
||||
// Count number of walking guests
|
||||
FOR_ALL_GUESTS(sprite_index, guest)
|
||||
@@ -249,7 +249,7 @@ static money32 staff_hire_new_staff_member(uint8 staff_type, uint8 flags, sint16
|
||||
const rct_sprite_bounds * spriteBounds;
|
||||
rct_peep * newPeep = &(create_sprite(flags)->peep);
|
||||
|
||||
if (newPeep == NULL)
|
||||
if (newPeep == nullptr)
|
||||
{
|
||||
gGameCommandErrorText = STR_TOO_MANY_PEOPLE_IN_GAME;
|
||||
return MONEY32_UNDEFINED;
|
||||
@@ -904,8 +904,8 @@ void staff_toggle_patrol_area(sint32 staffIndex, sint32 x, sint32 y)
|
||||
static uint8 staff_handyman_direction_to_nearest_litter(rct_peep * peep)
|
||||
{
|
||||
uint16 nearestLitterDist = (uint16)-1;
|
||||
rct_litter * nearestLitter = NULL;
|
||||
rct_litter * litter = NULL;
|
||||
rct_litter * nearestLitter = nullptr;
|
||||
rct_litter * litter = nullptr;
|
||||
|
||||
for (uint16 litterIndex = gSpriteListHead[SPRITE_LIST_LITTER]; litterIndex != 0xFFFF; litterIndex = litter->next)
|
||||
{
|
||||
@@ -1102,7 +1102,7 @@ static sint32 staff_path_finding_handyman(rct_peep * peep)
|
||||
{
|
||||
rct_tile_element * tileElement = map_get_path_element_at(peep->next_x / 32, peep->next_y / 32, peep->next_z);
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
return 1;
|
||||
|
||||
uint8 pathDirections = (tileElement->properties.path.edges & validDirections) & 0xF;
|
||||
@@ -1395,7 +1395,7 @@ static sint32 staff_path_finding_mechanic(rct_peep * peep)
|
||||
else
|
||||
{
|
||||
rct_tile_element * pathElement = map_get_path_element_at(peep->next_x / 32, peep->next_y / 32, peep->next_z);
|
||||
if (pathElement == NULL)
|
||||
if (pathElement == nullptr)
|
||||
return 1;
|
||||
|
||||
direction = staff_mechanic_direction_path(peep, validDirections, pathElement);
|
||||
@@ -1483,7 +1483,7 @@ static sint32 staff_path_finding_misc(rct_peep * peep)
|
||||
else
|
||||
{
|
||||
rct_tile_element * pathElement = map_get_path_element_at(peep->next_x / 32, peep->next_y / 32, peep->next_z);
|
||||
if (pathElement == NULL)
|
||||
if (pathElement == nullptr)
|
||||
return 1;
|
||||
|
||||
direction = staff_direction_path(peep, validDirections, pathElement);
|
||||
|
||||
@@ -4203,7 +4203,7 @@ static bool ride_check_track_contains_banked(rct_xy_element *input, rct_xy_eleme
|
||||
static sint32 ride_check_station_length(rct_xy_element *input, rct_xy_element *output)
|
||||
{
|
||||
rct_window* w = window_find_by_class(WC_RIDE_CONSTRUCTION);
|
||||
if (w != 0 &&
|
||||
if (w != nullptr &&
|
||||
_rideConstructionState != RIDE_CONSTRUCTION_STATE_0 &&
|
||||
_currentRideIndex == track_element_get_ride_index(input->element))
|
||||
{
|
||||
@@ -4648,7 +4648,7 @@ static train_ref vehicle_create_train(sint32 rideIndex, sint32 x, sint32 y, sint
|
||||
static void vehicle_create_trains(sint32 rideIndex, sint32 x, sint32 y, sint32 z, rct_tile_element *tileElement)
|
||||
{
|
||||
Ride *ride = get_ride(rideIndex);
|
||||
train_ref firstTrain = { 0 }, lastTrain = { 0 };
|
||||
train_ref firstTrain = { nullptr }, lastTrain = { nullptr };
|
||||
sint32 remainingDistance = 0;
|
||||
|
||||
for (sint32 vehicleIndex = 0; vehicleIndex < ride->num_vehicles; vehicleIndex++) {
|
||||
|
||||
@@ -824,10 +824,10 @@ uint16 vehicle_get_move_info_size(sint32 cd, sint32 typeAndDirection)
|
||||
rct_vehicle * try_get_vehicle(uint16 spriteIndex)
|
||||
{
|
||||
rct_sprite * sprite = try_get_sprite(spriteIndex);
|
||||
if (sprite == NULL)
|
||||
return NULL;
|
||||
if (sprite == nullptr)
|
||||
return nullptr;
|
||||
if (sprite->unknown.sprite_identifier != SPRITE_IDENTIFIER_VEHICLE)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
return &sprite->vehicle;
|
||||
}
|
||||
|
||||
@@ -913,7 +913,7 @@ static void vehicle_update_sound_params(rct_vehicle * vehicle)
|
||||
sint32 v = vehicle->velocity;
|
||||
|
||||
rct_ride_entry * ride_type = get_ride_entry(vehicle->ride_subtype);
|
||||
if (ride_type != NULL)
|
||||
if (ride_type != nullptr)
|
||||
{
|
||||
uint8 test = ride_type->vehicles[vehicle->vehicle_type].var_5A;
|
||||
|
||||
@@ -937,7 +937,7 @@ static void vehicle_update_sound_params(rct_vehicle * vehicle)
|
||||
if (vehicle->x != LOCATION_NULL)
|
||||
{
|
||||
rct_tile_element * tile_element = map_get_surface_element_at(vehicle->x >> 5, vehicle->y >> 5);
|
||||
if (tile_element != NULL && tile_element->base_height * 8 > vehicle->z)
|
||||
if (tile_element != nullptr && tile_element->base_height * 8 > vehicle->z)
|
||||
{ // vehicle underground
|
||||
i->volume = 0x30;
|
||||
}
|
||||
@@ -962,7 +962,7 @@ sint32 sub_6BC2F3(rct_vehicle * vehicle)
|
||||
{
|
||||
result += vehicle_temp->mass;
|
||||
} while (vehicle_temp->next_vehicle_on_train != SPRITE_INDEX_NULL &&
|
||||
(vehicle_temp = GET_VEHICLE(vehicle_temp->next_vehicle_on_train)) != NULL);
|
||||
(vehicle_temp = GET_VEHICLE(vehicle_temp->next_vehicle_on_train)) != nullptr);
|
||||
sint32 v4 = vehicle->velocity;
|
||||
if (v4 < 0)
|
||||
{
|
||||
@@ -991,8 +991,8 @@ void vehicle_sounds_update()
|
||||
{
|
||||
if (gAudioCurrentDevice != -1 && !gGameSoundsOff && gConfigSound.sound_enabled && !gOpenRCT2Headless)
|
||||
{
|
||||
g_music_tracking_viewport = NULL;
|
||||
rct_viewport * viewport = NULL;
|
||||
g_music_tracking_viewport = nullptr;
|
||||
rct_viewport * viewport = nullptr;
|
||||
rct_window * window = gWindowNextSlot;
|
||||
while (true)
|
||||
{
|
||||
@@ -1008,7 +1008,7 @@ void vehicle_sounds_update()
|
||||
}
|
||||
}
|
||||
g_music_tracking_viewport = viewport;
|
||||
if (viewport != NULL)
|
||||
if (viewport != nullptr)
|
||||
{
|
||||
if (window)
|
||||
{
|
||||
@@ -2711,7 +2711,7 @@ assert_struct_size(rct_synchronised_vehicle, 4);
|
||||
// Synchronised vehicle info
|
||||
static rct_synchronised_vehicle _synchronisedVehicles[SYNCHRONISED_VEHICLE_COUNT] = { 0 };
|
||||
|
||||
static rct_synchronised_vehicle * _lastSynchronisedVehicle = NULL;
|
||||
static rct_synchronised_vehicle * _lastSynchronisedVehicle = nullptr;
|
||||
|
||||
/**
|
||||
* Checks if a map position contains a synchronised ride station and adds the vehicle
|
||||
@@ -2727,7 +2727,7 @@ static bool try_add_synchronised_station(sint32 x, sint32 y, sint32 z)
|
||||
}
|
||||
|
||||
rct_tile_element * tileElement = get_station_platform(x, y, z, 2);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
/* No station platform element found,
|
||||
* so no station to synchronise */
|
||||
@@ -2827,7 +2827,7 @@ static bool vehicle_can_depart_synchronised(rct_vehicle * vehicle)
|
||||
sint32 z = ride->station_heights[station];
|
||||
|
||||
rct_tile_element * tileElement = map_get_track_element_at(x, y, z);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -3298,7 +3298,7 @@ static void vehicle_update_departing(rct_vehicle * vehicle)
|
||||
break;
|
||||
}
|
||||
|
||||
uint32 flags = vehicle_update_track_motion(vehicle, NULL);
|
||||
uint32 flags = vehicle_update_track_motion(vehicle, nullptr);
|
||||
|
||||
if (flags & (1 << 8))
|
||||
{
|
||||
@@ -3678,7 +3678,7 @@ static void vehicle_update_travelling(rct_vehicle * vehicle)
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 flags = vehicle_update_track_motion(vehicle, NULL);
|
||||
uint32 flags = vehicle_update_track_motion(vehicle, nullptr);
|
||||
|
||||
bool skipCheck = false;
|
||||
if (flags & ((1 << 8) | (1 << 9)) && ride->mode == RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE && vehicle->sub_state == 0)
|
||||
@@ -3960,7 +3960,7 @@ static void vehicle_update_arriving(rct_vehicle * vehicle)
|
||||
|
||||
uint32 flags;
|
||||
loc_6D8E36:
|
||||
flags = vehicle_update_track_motion(vehicle, NULL);
|
||||
flags = vehicle_update_track_motion(vehicle, nullptr);
|
||||
if (flags & (1 << 7) && unkF64E35 == 0)
|
||||
{
|
||||
vehicle_update_collision_setup(vehicle);
|
||||
@@ -3990,7 +3990,7 @@ loc_6D8E36:
|
||||
|
||||
rct_tile_element * tileElement = map_get_track_element_at(vehicle->track_x, vehicle->track_y, vehicle->track_z / 8);
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -4223,7 +4223,7 @@ static void vehicle_update_travelling_cable_lift(rct_vehicle * vehicle)
|
||||
{
|
||||
vehicle->acceleration = 4398;
|
||||
}
|
||||
sint32 flags = vehicle_update_track_motion(vehicle, NULL);
|
||||
sint32 flags = vehicle_update_track_motion(vehicle, nullptr);
|
||||
|
||||
if (flags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_11)
|
||||
{
|
||||
@@ -4270,7 +4270,7 @@ static void vehicle_update_travelling_boat(rct_vehicle * vehicle)
|
||||
static void loc_6DA9F9(rct_vehicle * vehicle, sint32 x, sint32 y, sint32 bx, sint32 dx)
|
||||
{
|
||||
vehicle->remaining_distance = 0;
|
||||
if (!vehicle_update_motion_collision_detection(vehicle, x, y, vehicle->z, NULL))
|
||||
if (!vehicle_update_motion_collision_detection(vehicle, x, y, vehicle->z, nullptr))
|
||||
{
|
||||
vehicle->track_x = bx;
|
||||
vehicle->track_y = dx;
|
||||
@@ -4431,7 +4431,7 @@ static void vehicle_update_motion_boat_hire(rct_vehicle * vehicle)
|
||||
x = vehicle->x + Unk9A36C4[edi].x;
|
||||
y = vehicle->y + Unk9A36C4[edi].y;
|
||||
z = vehicle->z;
|
||||
if (vehicle_update_motion_collision_detection(vehicle, x, y, z, NULL))
|
||||
if (vehicle_update_motion_collision_detection(vehicle, x, y, z, nullptr))
|
||||
{
|
||||
vehicle->remaining_distance = 0;
|
||||
if (vehicle->sprite_direction == vehicle->var_34)
|
||||
@@ -4519,7 +4519,7 @@ static void vehicle_update_motion_boat_hire(rct_vehicle * vehicle)
|
||||
|
||||
// loc_6DA9D1:
|
||||
vehicle->remaining_distance = 0;
|
||||
if (!vehicle_update_motion_collision_detection(vehicle, x, y, vehicle->z, NULL))
|
||||
if (!vehicle_update_motion_collision_detection(vehicle, x, y, vehicle->z, nullptr))
|
||||
{
|
||||
unk_F64E20.x = x;
|
||||
unk_F64E20.y = y;
|
||||
@@ -5159,9 +5159,9 @@ static void vehicle_update_doing_circus_show(rct_vehicle * vehicle)
|
||||
static rct_tile_element * vehicle_check_collision(sint16 x, sint16 y, sint16 z)
|
||||
{
|
||||
rct_tile_element * tileElement = map_get_first_element_at(x / 32, y / 32);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
uint8 bl;
|
||||
@@ -5190,7 +5190,7 @@ static rct_tile_element * vehicle_check_collision(sint16 x, sint16 y, sint16 z)
|
||||
return tileElement;
|
||||
} while (!tile_element_is_last_for_tile(tileElement++));
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5407,7 +5407,7 @@ static void vehicle_update_crash(rct_vehicle * vehicle)
|
||||
}
|
||||
|
||||
rct_tile_element * collideElement = vehicle_check_collision(curVehicle->x, curVehicle->y, curVehicle->z);
|
||||
if (collideElement == NULL)
|
||||
if (collideElement == nullptr)
|
||||
{
|
||||
curVehicle->sub_state = 1;
|
||||
}
|
||||
@@ -5482,7 +5482,7 @@ static void vehicle_update_sound(rct_vehicle * vehicle)
|
||||
ride = get_ride(vehicle->ride);
|
||||
rideEntry = get_ride_entry(vehicle->ride_subtype);
|
||||
|
||||
if (rideEntry == NULL)
|
||||
if (rideEntry == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -6190,9 +6190,9 @@ void vehicle_get_g_forces(rct_vehicle * vehicle, sint32 * verticalG, sint32 * la
|
||||
gForceVert >>= 16;
|
||||
gForceLateral >>= 16;
|
||||
|
||||
if (verticalG != NULL)
|
||||
if (verticalG != nullptr)
|
||||
*verticalG = (sint16)(gForceVert & 0xFFFF);
|
||||
if (lateralG != NULL)
|
||||
if (lateralG != nullptr)
|
||||
*lateralG = (sint16)(gForceLateral & 0xFFFF);
|
||||
}
|
||||
|
||||
@@ -6447,7 +6447,7 @@ bool vehicle_update_dodgems_collision(rct_vehicle * vehicle, sint16 x, sint16 y,
|
||||
|
||||
if (x - bp < rideLeft || y - bp < rideTop || x + bp > rideRight || y + bp > rideBottom)
|
||||
{
|
||||
if (spriteId != NULL)
|
||||
if (spriteId != nullptr)
|
||||
*spriteId = SPRITE_INDEX_NULL;
|
||||
return true;
|
||||
}
|
||||
@@ -6488,7 +6488,7 @@ bool vehicle_update_dodgems_collision(rct_vehicle * vehicle, sint16 x, sint16 y,
|
||||
ecx >>= 8;
|
||||
if (Math::Max(distX, distY) < ecx)
|
||||
{
|
||||
if (spriteId != NULL)
|
||||
if (spriteId != nullptr)
|
||||
*spriteId = vehicle2->sprite_index;
|
||||
return true;
|
||||
}
|
||||
@@ -6662,7 +6662,7 @@ static void check_and_apply_block_section_stop_site(rct_vehicle * vehicle)
|
||||
rct_tile_element * trackElement =
|
||||
map_get_track_element_at_of_type(vehicle->track_x, vehicle->track_y, vehicle->track_z >> 3, trackType);
|
||||
|
||||
if (trackElement == NULL)
|
||||
if (trackElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -6778,7 +6778,7 @@ static void vehicle_update_block_brakes_open_previous_section(rct_vehicle * vehi
|
||||
y = trackBeginEnd.begin_y;
|
||||
z = trackBeginEnd.begin_z;
|
||||
tileElement = map_get_track_element_at(x, y, z >> 3);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -7218,10 +7218,10 @@ static void vehicle_update_spinning_car(rct_vehicle * vehicle)
|
||||
static void steam_particle_create(sint16 x, sint16 y, sint16 z)
|
||||
{
|
||||
rct_tile_element * tileElement = map_get_surface_element_at(x >> 5, y >> 5);
|
||||
if (tileElement != NULL && z > tileElement->base_height * 8)
|
||||
if (tileElement != nullptr && z > tileElement->base_height * 8)
|
||||
{
|
||||
rct_steam_particle * steam = (rct_steam_particle *)create_sprite(2);
|
||||
if (steam == NULL)
|
||||
if (steam == nullptr)
|
||||
return;
|
||||
|
||||
steam->sprite_width = 20;
|
||||
@@ -7438,7 +7438,7 @@ static void vehicle_update_scenery_door(rct_vehicle * vehicle)
|
||||
sint32 direction = (vehicle->track_direction + trackCoordinates->rotation_end) & 3;
|
||||
|
||||
rct_tile_element * tileElement = map_get_wall_element_at(x, y, z, direction);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -7523,7 +7523,7 @@ static void vehicle_update_handle_scenery_door(rct_vehicle * vehicle)
|
||||
direction ^= 2;
|
||||
|
||||
rct_tile_element * tileElement = map_get_wall_element_at(x, y, z, direction);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -7644,7 +7644,7 @@ static bool vehicle_update_motion_collision_detection(rct_vehicle * vehicle, sin
|
||||
vehicle->var_C4 = 0;
|
||||
|
||||
// If hacking boat hire rides you can end up here
|
||||
if (otherVehicleIndex == NULL)
|
||||
if (otherVehicleIndex == nullptr)
|
||||
return false;
|
||||
|
||||
rct_vehicle * collideVehicle = GET_VEHICLE(*otherVehicleIndex);
|
||||
@@ -7681,7 +7681,7 @@ static bool vehicle_update_motion_collision_detection(rct_vehicle * vehicle, sin
|
||||
|
||||
bool mayCollide = false;
|
||||
uint16 collideId = SPRITE_INDEX_NULL;
|
||||
rct_vehicle * collideVehicle = NULL;
|
||||
rct_vehicle * collideVehicle = nullptr;
|
||||
for (auto xy_offset : Unk9A37C4)
|
||||
{
|
||||
location.x += xy_offset.x;
|
||||
@@ -7772,7 +7772,7 @@ static bool vehicle_update_motion_collision_detection(rct_vehicle * vehicle, sin
|
||||
if (vehicle->var_C4 < 200)
|
||||
{
|
||||
vehicle->update_flags |= VEHICLE_UPDATE_FLAG_6;
|
||||
if (otherVehicleIndex != NULL)
|
||||
if (otherVehicleIndex != nullptr)
|
||||
*otherVehicleIndex = collideId;
|
||||
return true;
|
||||
}
|
||||
@@ -7818,7 +7818,7 @@ static bool vehicle_update_motion_collision_detection(rct_vehicle * vehicle, sin
|
||||
}
|
||||
|
||||
vehicle->update_flags |= VEHICLE_UPDATE_FLAG_6;
|
||||
if (otherVehicleIndex != NULL)
|
||||
if (otherVehicleIndex != nullptr)
|
||||
*otherVehicleIndex = collideId;
|
||||
return true;
|
||||
}
|
||||
@@ -7864,14 +7864,14 @@ static void sub_6DBF3E(rct_vehicle * vehicle)
|
||||
|
||||
_vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_3;
|
||||
|
||||
rct_tile_element * tileElement = NULL;
|
||||
rct_tile_element * tileElement = nullptr;
|
||||
if (map_is_location_valid(vehicle->track_x, vehicle->track_y))
|
||||
{
|
||||
tileElement =
|
||||
map_get_track_element_at_of_type_seq(vehicle->track_x, vehicle->track_y, vehicle->track_z >> 3, trackType, 0);
|
||||
}
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -7949,7 +7949,7 @@ static bool vehicle_update_track_motion_forwards_get_new_track(rct_vehicle * veh
|
||||
rct_tile_element * tileElement =
|
||||
map_get_track_element_at_of_type_seq(vehicle->track_x, vehicle->track_y, vehicle->track_z >> 3, trackType, 0);
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -8385,7 +8385,7 @@ static bool vehicle_update_track_motion_backwards_get_new_track(rct_vehicle * ve
|
||||
rct_tile_element * tileElement =
|
||||
map_get_track_element_at_of_type_seq(vehicle->track_x, vehicle->track_y, vehicle->track_z >> 3, trackType, 0);
|
||||
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
return false;
|
||||
|
||||
bool nextTileBackwards = true;
|
||||
@@ -8708,7 +8708,7 @@ static sint32 vehicle_update_track_motion_mini_golf(rct_vehicle * vehicle, sint3
|
||||
rct_ride_entry * rideEntry = get_ride_entry(vehicle->ride_subtype);
|
||||
rct_ride_entry_vehicle * vehicleEntry = vehicle_get_vehicle_entry(vehicle);
|
||||
|
||||
rct_tile_element * tileElement = NULL;
|
||||
rct_tile_element * tileElement = nullptr;
|
||||
|
||||
gCurrentVehicle = vehicle;
|
||||
_vehicleMotionTrackFlags = 0;
|
||||
@@ -9441,7 +9441,7 @@ loc_6DD069:
|
||||
regs.eax = _vehicleMotionTrackFlags;
|
||||
regs.ebx = _vehicleStationIndex;
|
||||
|
||||
if (outStation != NULL)
|
||||
if (outStation != nullptr)
|
||||
*outStation = regs.ebx;
|
||||
return regs.eax;
|
||||
}
|
||||
@@ -9458,7 +9458,7 @@ sint32 vehicle_update_track_motion(rct_vehicle * vehicle, sint32 * outStation)
|
||||
rct_ride_entry * rideEntry = get_ride_entry(vehicle->ride_subtype);
|
||||
rct_ride_entry_vehicle * vehicleEntry = vehicle_get_vehicle_entry(vehicle);
|
||||
|
||||
if (vehicleEntry == NULL)
|
||||
if (vehicleEntry == nullptr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -9823,7 +9823,7 @@ loc_6DC316:
|
||||
regs.ebx = _vehicleStationIndex;
|
||||
|
||||
// hook_setreturnregisters(®s);
|
||||
if (outStation != NULL)
|
||||
if (outStation != nullptr)
|
||||
*outStation = regs.ebx;
|
||||
return regs.eax;
|
||||
}
|
||||
@@ -9866,7 +9866,7 @@ void vehicle_invalidate_window(rct_vehicle * vehicle)
|
||||
rct_window * w;
|
||||
|
||||
w = window_find_by_number(WC_RIDE, vehicle->ride);
|
||||
if (w == NULL)
|
||||
if (w == nullptr)
|
||||
return;
|
||||
|
||||
ride = get_ride(vehicle->ride);
|
||||
|
||||
@@ -194,7 +194,7 @@ static void air_powered_vertical_rc_track_flat(paint_session * session, uint8 ri
|
||||
uint32 imageId = imageIds[direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -217,7 +217,7 @@ static void air_powered_vertical_rc_track_station(paint_session * session, uint8
|
||||
sub_98199C_rotated(session, direction, imageIds[direction][0] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1,
|
||||
height, 0, 6, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
track_paint_util_draw_station_platform(session, ride, direction, height, 5, tileElement);
|
||||
@@ -335,7 +335,7 @@ static void air_powered_vertical_rc_track_flat_to_left_bank(paint_session * sess
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 1, 26, height, 0, 27, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -363,7 +363,7 @@ static void air_powered_vertical_rc_track_flat_to_right_bank(paint_session * ses
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 1, 26, height, 0, 27, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -509,7 +509,7 @@ static void air_powered_vertical_rc_track_left_bank(paint_session * session, uin
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 20, 3, height, 0, 6, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -536,7 +536,7 @@ static void air_powered_vertical_rc_track_brakes(paint_session * session, uint8
|
||||
uint32 imageId = imageIds[direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -650,7 +650,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up(paint_session * sess
|
||||
sub_98197C_rotated(session, direction, supportsImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
|
||||
sub_98199C_rotated(session, direction, trackImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
|
||||
@@ -675,7 +675,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up(paint_session * sess
|
||||
sub_98199C_rotated(session, direction, trackImageId, 0, 0, 32, 20, bbHeight, height, 0, 6, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
@@ -699,12 +699,12 @@ static void air_powered_vertical_rc_track_vertical_slope_up(paint_session * sess
|
||||
sub_98199C_rotated(session, direction, supportsImageId, 0, 0, 32, 20, bbHeight, height, 0, 6, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
|
||||
break;
|
||||
case 5:
|
||||
if (wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL))
|
||||
if (wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr))
|
||||
{
|
||||
uint32 floorImageId;
|
||||
if (direction & 1)
|
||||
@@ -736,7 +736,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up(paint_session * sess
|
||||
sub_98197C_rotated(session, direction, trackImageId, 0, 0, 1, 20, 126, height, 27, 6, height);
|
||||
sub_98199C_rotated(session, direction, supportsImageId, 0, 0, 1, 20, 126, height, 27, 6, height);
|
||||
}
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_vertical_tunnel(session, height + 240);
|
||||
|
||||
@@ -920,5 +920,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(sint32 tra
|
||||
case TRACK_ELEM_AIR_THRUST_VERTICAL_DOWN_TO_LEVEL:
|
||||
return air_powered_vertical_rc_track_vertical_slope_down;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -3309,5 +3309,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(sint32 trackType, sin
|
||||
case TRACK_ELEM_ON_RIDE_PHOTO:
|
||||
return bobsleigh_rc_track_on_ride_photo;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -8167,5 +8167,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(sint32 trackTy
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return compact_inverted_rc_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -8065,5 +8065,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(sint32 trackType, sin
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return corkscrew_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -16262,5 +16262,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(sint32 trackType, sint32
|
||||
case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
|
||||
return flying_rc_track_right_banked_25_deg_down_to_flat;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -8514,5 +8514,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(sint32 trackType, sint32 d
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return giga_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1268,5 +1268,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(sint32 trackTy
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return inverted_hairpin_rc_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -741,5 +741,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(sint32 trackTy
|
||||
case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_90_DEG_DOWN:
|
||||
return inverted_impulse_rc_track_right_quarter_turn_1_90_deg_down;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -9631,5 +9631,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(sint32 trackType, sint
|
||||
case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
|
||||
return inverted_rc_track_right_banked_25_deg_down_to_flat;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -2052,7 +2052,7 @@ static void junior_rc_banked_right_quarter_turn_5_tiles_paint_setup(paint_sessio
|
||||
}
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, thickness, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_banked_quarter_turn_5_tiles, NULL, junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths,
|
||||
junior_rc_track_pieces_banked_quarter_turn_5_tiles, nullptr, junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths,
|
||||
junior_rc_banked_right_quarter_turn_5_tiles_bound_offsets, get_current_rotation());
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
@@ -2484,7 +2484,7 @@ void junior_rc_paint_track_left_quarter_turn_5_tiles_25_deg_up(paint_session * s
|
||||
session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_left_quarter_turn_5_tiles_25_deg_up[chainType],
|
||||
junior_rc_left_quarter_turn_5_tiles_25_deg_up_offsets,
|
||||
defaultRightQuarterTurn5TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn5TilesBoundLengths, nullptr, get_current_rotation());
|
||||
|
||||
uint8 supportSpecial[4] = { 8, 8, 8, 3 };
|
||||
switch (trackSequence)
|
||||
@@ -2561,7 +2561,7 @@ void junior_rc_paint_track_right_quarter_turn_5_tiles_25_deg_up(paint_session *
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, 1, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_right_quarter_turn_5_tiles_25_deg_up[chainType], defaultRightQuarterTurn5TilesOffsets,
|
||||
defaultRightQuarterTurn5TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn5TilesBoundLengths, nullptr, get_current_rotation());
|
||||
|
||||
uint8 supportSpecial[4] = { 11, 8, 8, 7 };
|
||||
switch (trackSequence)
|
||||
@@ -2879,7 +2879,7 @@ static void junior_rc_right_quarter_turn_3_tiles_paint_setup(paint_session * ses
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 1, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets,
|
||||
defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn3TilesBoundLengths, nullptr, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
uint8 supportType[2][4] = { { 1, 0, 0, 2 }, { 2, 0, 0, 1 } };
|
||||
@@ -2969,7 +2969,7 @@ static void junior_rc_right_quarter_turn_3_tiles_bank_paint_setup(paint_session
|
||||
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, thickness[direction][trackSequence], height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_banked_quarter_turn_3_tiles, NULL, junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths,
|
||||
junior_rc_track_pieces_banked_quarter_turn_3_tiles, nullptr, junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths,
|
||||
junior_rc_right_quarter_turn_3_tiles_bank_offsets, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
@@ -3236,7 +3236,7 @@ static void junior_rc_right_half_banked_helix_up_small_paint_setup(paint_session
|
||||
}
|
||||
track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
session, thickness, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles, NULL,
|
||||
junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles, nullptr,
|
||||
defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0)
|
||||
@@ -3302,7 +3302,7 @@ static void junior_rc_right_half_banked_helix_down_small_paint_setup(paint_sessi
|
||||
}
|
||||
track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
session, thickness, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles, NULL,
|
||||
junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles, nullptr,
|
||||
defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0)
|
||||
@@ -3399,7 +3399,7 @@ static void junior_rc_right_half_banked_helix_up_large_paint_setup(paint_session
|
||||
}
|
||||
track_paint_util_right_helix_up_large_quarter_tiles_paint(
|
||||
session, thickness, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles, NULL,
|
||||
junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles, nullptr,
|
||||
defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0)
|
||||
@@ -3481,7 +3481,7 @@ static void junior_rc_right_half_banked_helix_down_large_paint_setup(paint_sessi
|
||||
}
|
||||
track_paint_util_right_helix_up_large_quarter_tiles_paint(
|
||||
session, thickness, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles, NULL,
|
||||
junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles, nullptr,
|
||||
defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0)
|
||||
@@ -5685,5 +5685,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(sint32 trackType, sint32
|
||||
case TRACK_ELEM_DIAG_FLAT_TO_60_DEG_DOWN:
|
||||
return junior_rc_diag_flat_to_60_deg_down_paint_setup;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -14602,5 +14602,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(sint32 trackType, sint
|
||||
case TRACK_ELEM_RIGHT_QUARTER_BANKED_HELIX_LARGE_DOWN:
|
||||
return lay_down_rc_track_right_quarter_banked_helix_large_down;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -1760,5 +1760,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(sint32 trackType,
|
||||
case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_90_DEG_DOWN:
|
||||
return lim_launched_rc_track_right_quarter_turn_1_90_deg_down;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -8725,5 +8725,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(sint32 trackType, sint3
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return looping_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -5007,5 +5007,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(sint32 trackType, sint32
|
||||
case TRACK_ELEM_DIAG_RIGHT_BANK:
|
||||
return mine_ride_track_diag_right_bank;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -8678,5 +8678,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(sint32 trackType, sint32 d
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return mini_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -2295,5 +2295,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(sint32 trackType
|
||||
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_FLAT:
|
||||
return mini_suspended_rc_track_diag_25_deg_down_to_flat;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -12102,5 +12102,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(sint32 trackTyp
|
||||
case TRACK_ELEM_255:
|
||||
return multi_dimension_rc_track_elem_255;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -216,7 +216,7 @@ static void paint_reverse_freefall_rc_flat(paint_session * session, uint8 rideIn
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1) ? 1 : 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1) ? 1 : 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
@@ -238,7 +238,7 @@ static void paint_reverse_freefall_rc_station(paint_session * session, uint8 rid
|
||||
sub_98199C(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1) ? 1 : 0, 0, height, session->TrackColours[SCHEME_SUPPORTS],
|
||||
NULL);
|
||||
nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
}
|
||||
else if (direction == 1 || direction == 3)
|
||||
@@ -252,7 +252,7 @@ static void paint_reverse_freefall_rc_station(paint_session * session, uint8 rid
|
||||
sub_98199C(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1) ? 1 : 0, 0, height, session->TrackColours[SCHEME_SUPPORTS],
|
||||
NULL);
|
||||
nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
@@ -308,12 +308,12 @@ static void paint_reverse_freefall_rc_slope(paint_session * session, uint8 rideI
|
||||
sub_98199C_rotated(session, direction, supportsImageId, 0, 0, 32, 20, bbHeight, height, 0, 6, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
|
||||
break;
|
||||
case 5:
|
||||
if (wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL))
|
||||
if (wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr))
|
||||
{
|
||||
uint32 floorImageId;
|
||||
if (direction & 1)
|
||||
@@ -347,7 +347,7 @@ static void paint_reverse_freefall_rc_slope(paint_session * session, uint8 rideI
|
||||
sub_98197C_rotated(session, direction, trackImageId, 0, 0, 1, 20, 126, height, 27, 6, height);
|
||||
sub_98199C_rotated(session, direction, supportsImageId, 0, 0, 1, 20, 126, height, 27, 6, height);
|
||||
}
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
|
||||
break;
|
||||
@@ -399,5 +399,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(sint32 trackTy
|
||||
case TRACK_ELEM_REVERSE_FREEFALL_VERTICAL:
|
||||
return paint_reverse_freefall_rc_vertical;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -58,13 +58,13 @@ static void reverser_rc_track_flat(paint_session * session, uint8 rideIndex, uin
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21520, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21521, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -76,13 +76,13 @@ static void reverser_rc_track_flat(paint_session * session, uint8 rideIndex, uin
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21504, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21505, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@ static void reverser_rc_track_station(paint_session * session, uint8 rideIndex,
|
||||
0, 2, height);
|
||||
sub_98199C_rotated(session, direction, imageIds[direction][0] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 27, 2,
|
||||
height, 0, 2, height);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
track_paint_util_draw_station_2(session, rideIndex, trackSequence, direction, height, tileElement, 9, 11);
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -123,22 +123,22 @@ static void reverser_rc_track_25_deg_up(paint_session * session, uint8 rideIndex
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21530, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21531, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21532, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21533, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -149,22 +149,22 @@ static void reverser_rc_track_25_deg_up(paint_session * session, uint8 rideIndex
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21516, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21517, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21518, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21519, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -191,22 +191,22 @@ static void reverser_rc_track_flat_to_25_deg_up(paint_session * session, uint8 r
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21522, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21523, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21524, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21525, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -217,22 +217,22 @@ static void reverser_rc_track_flat_to_25_deg_up(paint_session * session, uint8 r
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21508, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21509, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21510, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21511, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -259,22 +259,22 @@ static void reverser_rc_track_25_deg_up_to_flat(paint_session * session, uint8 r
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21526, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21527, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21528, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21529, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -285,22 +285,22 @@ static void reverser_rc_track_25_deg_up_to_flat(paint_session * session, uint8 r
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21512, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21513, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21514, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21515, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -348,19 +348,19 @@ static void reverser_rc_track_left_quarter_turn_5(paint_session * session, uint8
|
||||
{
|
||||
case 0:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21543, 0, 2, 32, 27, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21548, 0, 2, 32, 27, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21553, 0, 2, 32, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21538, 0, 2, 32, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -380,19 +380,19 @@ static void reverser_rc_track_left_quarter_turn_5(paint_session * session, uint8
|
||||
{
|
||||
case 0:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21542, 0, 0, 32, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21547, 0, 0, 32, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21552, 0, 16, 32, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21537, 0, 16, 32, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -406,19 +406,19 @@ static void reverser_rc_track_left_quarter_turn_5(paint_session * session, uint8
|
||||
{
|
||||
case 0:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21541, 0, 16, 16, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21546, 16, 16, 16, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21551, 16, 0, 16, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21536, 0, 0, 16, 16, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session,
|
||||
@@ -438,19 +438,19 @@ static void reverser_rc_track_left_quarter_turn_5(paint_session * session, uint8
|
||||
{
|
||||
case 0:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21540, 16, 0, 16, 34, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21545, 0, 0, 16, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21550, 0, 0, 16, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21535, 16, 0, 16, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -464,19 +464,19 @@ static void reverser_rc_track_left_quarter_turn_5(paint_session * session, uint8
|
||||
{
|
||||
case 0:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21539, 2, 0, 32, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21544, 2, 0, 27, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21549, 2, 0, 27, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98196C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21534, 2, 0, 32, 32, 2, height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -514,22 +514,22 @@ static void reverser_rc_track_s_bend_left(paint_session * session, uint8 rideInd
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21566, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21570, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21569, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21573, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -545,22 +545,22 @@ static void reverser_rc_track_s_bend_left(paint_session * session, uint8 rideInd
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21567, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21571, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21568, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21572, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -575,22 +575,22 @@ static void reverser_rc_track_s_bend_left(paint_session * session, uint8 rideInd
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21568, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21572, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21567, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21571, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -605,22 +605,22 @@ static void reverser_rc_track_s_bend_left(paint_session * session, uint8 rideInd
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21569, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21573, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21566, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21570, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -650,22 +650,22 @@ static void reverser_rc_track_s_bend_right(paint_session * session, uint8 rideIn
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21574, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21578, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21577, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21581, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -681,22 +681,22 @@ static void reverser_rc_track_s_bend_right(paint_session * session, uint8 rideIn
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21575, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21579, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21576, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21580, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -711,22 +711,22 @@ static void reverser_rc_track_s_bend_right(paint_session * session, uint8 rideIn
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21576, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21580, 0, 0, 32, 26, 2, height, 0, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21575, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21579, 0, 0, 32, 26, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(
|
||||
@@ -741,22 +741,22 @@ static void reverser_rc_track_s_bend_right(paint_session * session, uint8 rideIn
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21577, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21581, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21574, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21578, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -786,22 +786,22 @@ static void reverser_rc_track_left_quarter_turn_3(paint_session * session, uint8
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21559, 0, 0, 32, 20, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21562, 0, 0, 32, 20, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21565, 0, 0, 32, 20, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21556, 0, 0, 32, 20, 2, height, 0, 6,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -844,22 +844,22 @@ static void reverser_rc_track_left_quarter_turn_3(paint_session * session, uint8
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21557, 0, 0, 20, 32, 2, height, 6, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21560, 0, 0, 20, 32, 2, height, 6, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21563, 0, 0, 20, 32, 2, height, 6, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21554, 0, 0, 20, 32, 2, height, 6, 0,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -895,13 +895,13 @@ static void reverser_rc_track_brakes(paint_session * session, uint8 rideIndex, u
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21506, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21507, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
@@ -921,22 +921,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21582, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21588, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21594, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21600, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -952,22 +952,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21585, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21591, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21597, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21603, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -979,22 +979,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21586, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21592, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21598, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21604, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1006,22 +1006,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21587, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21593, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21599, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21605, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1033,22 +1033,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21583, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21589, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21595, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21601, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1060,22 +1060,22 @@ static void reverser_rc_track_left_reverser(paint_session * session, uint8 rideI
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21584, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21590, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21596, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21602, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -1105,22 +1105,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21596, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21602, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21584, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21590, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -1136,22 +1136,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21599, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21605, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21587, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21593, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1163,22 +1163,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21598, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21604, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21586, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21592, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1190,22 +1190,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21597, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21603, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21585, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21591, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1217,22 +1217,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21595, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21601, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21583, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21589, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -1244,22 +1244,22 @@ static void reverser_rc_track_right_reverser(paint_session * session, uint8 ride
|
||||
case 0:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21594, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 1:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21600, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21582, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C_rotated(session, direction, session->TrackColours[SCHEME_TRACK] | 21588, 0, 0, 32, 27, 2, height, 0, 2,
|
||||
height);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
switch (direction)
|
||||
@@ -1318,5 +1318,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(sint32 trackType, sint
|
||||
case TRACK_ELEM_RIGHT_REVERSER:
|
||||
return reverser_rc_track_right_reverser;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -7723,5 +7723,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(sint32 trackType, sint
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return stand_up_rc_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -2159,5 +2159,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(sint32 trackType, sin
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return steeplechase_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -4073,5 +4073,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(sint32 track
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return suspended_swinging_rc_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -1833,5 +1833,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(sint32 trackType, sint3
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return twister_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -1841,5 +1841,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(sint32 trackType,
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return vertical_drop_rc_track_booster;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -251,7 +251,7 @@ static void paint_virginia_reel_track_flat(paint_session * session, uint8 rideIn
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -287,19 +287,19 @@ static void paint_virginia_reel_track_25_deg_up(paint_session * session, uint8 r
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height - 8, TUNNEL_7);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height - 8, TUNNEL_7);
|
||||
break;
|
||||
}
|
||||
@@ -325,27 +325,27 @@ static void paint_virginia_reel_track_flat_to_25_deg_up(paint_session * session,
|
||||
case 0:
|
||||
sub_98197C(session, imageId, 0, 0, 32, 27, 2, height, 0, 2, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
ps = sub_98197C(session, imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
session->WoodenSupportsPrependTo = ps;
|
||||
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
ps = sub_98197C(session, imageId, 0, 0, 32, 27, 2, height, 0, 2, height, get_current_rotation());
|
||||
session->WoodenSupportsPrependTo = ps;
|
||||
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C(session, imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -384,19 +384,19 @@ static void paint_virginia_reel_track_25_deg_up_to_flat(paint_session * session,
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height - 8, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height - 8, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -453,7 +453,7 @@ static void paint_virginia_reel_station(paint_session * session, uint8 rideIndex
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
track_paint_util_draw_station(session, rideIndex, trackSequence, direction, height, tileElement);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -480,7 +480,7 @@ static void paint_virginia_reel_track_left_quarter_turn_3_tiles(paint_session *
|
||||
case 0:
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, virginia_reel_left_quarter_turn_supports[direction], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_set_segment_support_height(session, paint_util_rotate_segments(SEGMENTS_ALL, direction), 0xFFFF, 0);
|
||||
break;
|
||||
}
|
||||
@@ -510,18 +510,18 @@ static void paint_virginia_reel_track_left_quarter_turn_1_tile(paint_session * s
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 5, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 2, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 3, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 4, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
break;
|
||||
@@ -579,5 +579,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(sint32 trackType, si
|
||||
return paint_virginia_reel_track_right_quarter_turn_1_tile;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -971,5 +971,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(sint32 trackType, sint3
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
return wild_mouse_track_block_brakes;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -141,7 +141,7 @@ static void wooden_wild_mouse_track_flat(paint_session * session, uint8 rideInde
|
||||
|
||||
uint32 imageId = imageIds[direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98196C_rotated(session, direction, imageId, 0, 6, 32, 20, 1, height);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_0);
|
||||
paint_util_set_segment_support_height(
|
||||
session,
|
||||
@@ -166,7 +166,7 @@ static void wooden_wild_mouse_track_station(paint_session * session, uint8 rideI
|
||||
height - 2, 0, 2, height);
|
||||
sub_98199C_rotated(session, direction, imageIds[direction][0] | session->TrackColours[SCHEME_TRACK], 0, 6, 32, 20, 1,
|
||||
height, 0, 0, height);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
track_paint_util_draw_station(session, rideIndex, trackSequence, direction, height, tileElement);
|
||||
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -196,7 +196,7 @@ static void wooden_wild_mouse_track_25_deg_up(paint_session * session, uint8 rid
|
||||
uint32 imageId = imageIds[isChained][direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 2, 32, 25, 1, height, 0, 3, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 9 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 9 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -242,7 +242,7 @@ static void wooden_wild_mouse_track_60_deg_up(paint_session * session, uint8 rid
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 6, 2, 24, 93, height, 28, 4, height - 16);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 21 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 21 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -280,7 +280,7 @@ static void wooden_wild_mouse_track_flat_to_25_deg_up(paint_session * session, u
|
||||
uint32 imageId = imageIds[isChained][direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 2, 32, 25, 1, height, 0, 3, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 1 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 1 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -330,7 +330,7 @@ static void wooden_wild_mouse_track_25_deg_up_to_60_deg_up(paint_session * sessi
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 6, 32, 2, 43, height, 0, 4, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 13 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 13 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -379,7 +379,7 @@ static void wooden_wild_mouse_track_60_deg_to_25_deg_up(paint_session * session,
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 6, 32, 2, 43, height, 0, 4, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 17 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 17 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -417,7 +417,7 @@ static void wooden_wild_mouse_track_25_deg_up_to_flat(paint_session * session, u
|
||||
uint32 imageId = imageIds[isChained][direction] | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 2, 32, 25, 1, height, 0, 3, height);
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 5 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 5 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -509,7 +509,7 @@ static void wooden_wild_mouse_track_right_quarter_turn_3(paint_session * session
|
||||
{
|
||||
case 0:
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, supportType[direction], 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType[direction], 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -564,7 +564,7 @@ static void wooden_wild_mouse_track_left_quarter_turn_1(paint_session * session,
|
||||
sub_98196C(session, imageId, 6, 6, 24, 24, 1, height, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
wooden_a_supports_paint_setup(session, supportType[direction], 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType[direction], 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -611,7 +611,7 @@ static void wooden_wild_mouse_track_flat_to_60_deg_up(paint_session * session, u
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 6, 32, 2, 43, height, 0, 4, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 29 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 29 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -660,7 +660,7 @@ static void wooden_wild_mouse_track_60_deg_up_to_flat(paint_session * session, u
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 6, 32, 2, 43, height, 0, 4, height);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 33 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 33 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -740,5 +740,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(sint32 trackType
|
||||
case TRACK_ELEM_60_DEG_DOWN_TO_FLAT:
|
||||
return wooden_wild_mouse_track_60_deg_down_to_flat;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ static void paint_car_ride_track_right_quarter_turn_3_tiles(paint_session * sess
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
car_ride_track_pieces_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets,
|
||||
defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn3TilesBoundLengths, nullptr, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -472,7 +472,7 @@ static void paint_car_ride_track_spinning_tunnel(paint_session * session, uint8
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -751,5 +751,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(sint32 trackType, sint32
|
||||
return paint_car_ride_track_spinning_tunnel;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ static void paint_circus_show(paint_session * session, uint8 rideIndex, uint8 tr
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -126,7 +126,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_circus_show(sint32 trackType, sint
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_circus_show;
|
||||
|
||||
@@ -77,7 +77,7 @@ static void paint_crooked_house(paint_session * session, uint8 rideIndex, uint8
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -130,7 +130,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(sint32 trackType, si
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_crooked_house;
|
||||
|
||||
@@ -52,7 +52,7 @@ static void paint_dodgems(paint_session * session, uint8 rideIndex, uint8 trackS
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
uint32 imageId = SPR_DODGEMS_FLOOR | session->TrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(session, imageId, 0, 0, 30, 30, 1, height, 1, 1, height, get_current_rotation());
|
||||
@@ -102,7 +102,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(sint32 trackType, sint32 d
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_dodgems;
|
||||
|
||||
@@ -62,7 +62,7 @@ static void paint_ferris_wheel_structure(paint_session * session, uint8 rideInde
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
sint8 xOffset = !(direction & 1) ? axisOffset : 0;
|
||||
sint8 yOffset = (direction & 1) ? axisOffset : 0;
|
||||
@@ -80,7 +80,7 @@ static void paint_ferris_wheel_structure(paint_session * session, uint8 rideInde
|
||||
}
|
||||
|
||||
uint32 imageOffset = 0;
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
imageOffset = vehicle->vehicle_sprite_type % 8;
|
||||
}
|
||||
@@ -155,7 +155,7 @@ static void paint_ferris_wheel(paint_session * session, uint8 rideIndex, uint8 t
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -212,7 +212,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(sint32 trackType, sin
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_4_C)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_ferris_wheel;
|
||||
|
||||
@@ -48,7 +48,7 @@ static void paint_flying_saucers(paint_session * session, uint8 rideIndex, uint8
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
uint32 imageId = SPR_FLYING_SAUCERS_FLOOR | session->TrackColours[SCHEME_TRACK];
|
||||
sub_98197C(session, imageId, 0, 0, 30, 30, 1, height, 1, 1, height, get_current_rotation());
|
||||
@@ -67,7 +67,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(sint32 trackType, s
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_flying_saucers;
|
||||
|
||||
@@ -429,7 +429,7 @@ static void paint_ghost_train_track_right_quarter_turn_3_tiles(paint_session * s
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
ghost_train_track_pieces_quarter_turn_3_tiles, NULL, defaultRightQuarterTurn3TilesBoundLengths,
|
||||
ghost_train_track_pieces_quarter_turn_3_tiles, nullptr, defaultRightQuarterTurn3TilesBoundLengths,
|
||||
defaultRightQuarterTurn3TilesBoundOffsets, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
@@ -515,7 +515,7 @@ static void paint_ghost_train_track_spinning_tunnel(paint_session * session, uin
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -603,5 +603,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(sint32 trackType, sint
|
||||
return paint_ghost_train_track_spinning_tunnel;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -99,7 +99,7 @@ static void paint_haunted_house(paint_session * session, uint8 rideIndex, uint8
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -153,7 +153,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(sint32 trackType, si
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_haunted_house;
|
||||
|
||||
@@ -62,7 +62,7 @@ static void maze_paint_setup(paint_session * session, uint8 rideIndex, uint8 tra
|
||||
sint32 image_id = SPR_TERRAIN_DIRT | session->TrackColours[SCHEME_MISC];
|
||||
sub_98196C(session, image_id, 0, 0, 32, 32, 0, height, rotation);
|
||||
|
||||
wooden_a_supports_paint_setup(session, (rotation & 1) ? 0 : 1, 0, height, session->TrackColours[SCHEME_3], NULL);
|
||||
wooden_a_supports_paint_setup(session, (rotation & 1) ? 0 : 1, 0, height, session->TrackColours[SCHEME_3], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL & ~SEGMENT_C4, 0xFFFF, 0);
|
||||
|
||||
@@ -186,7 +186,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_maze(sint32 trackType, sint32 dire
|
||||
{
|
||||
if (trackType != TRACK_ELEM_MAZE)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return maze_paint_setup;
|
||||
|
||||
@@ -37,7 +37,7 @@ static void paint_merry_go_round_structure(paint_session * session, uint8 rideIn
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
if (rideEntry == nullptr)
|
||||
{
|
||||
@@ -60,7 +60,7 @@ static void paint_merry_go_round_structure(paint_session * session, uint8 rideIn
|
||||
}
|
||||
|
||||
uint32 rotationOffset = 0;
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
uint32 rotation = ((vehicle->sprite_direction >> 3) + get_current_rotation()) << 5;
|
||||
rotationOffset = (vehicle->vehicle_sprite_type + rotation) % 128;
|
||||
@@ -80,7 +80,7 @@ static void paint_merry_go_round_structure(paint_session * session, uint8 rideIn
|
||||
get_current_rotation());
|
||||
|
||||
rct_drawpixelinfo * dpi = session->Unk140E9A8;
|
||||
if (dpi->zoom_level == 0 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != NULL)
|
||||
if (dpi->zoom_level == 0 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr)
|
||||
{
|
||||
|
||||
for (sint32 peep = 0; peep <= 14; peep += 2)
|
||||
@@ -122,7 +122,7 @@ static void paint_merry_go_round(paint_session * session, uint8 rideIndex, uint8
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -185,7 +185,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(sint32 trackType, s
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_merry_go_round;
|
||||
|
||||
@@ -650,7 +650,7 @@ static void paint_mini_golf_station(paint_session * session, uint8 rideIndex, ui
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -749,7 +749,7 @@ static void paint_mini_golf_hole_ab(paint_session * session, uint8 trackSequence
|
||||
LocationXY16 boundBox, boundBoxOffset;
|
||||
|
||||
bool drewSupports =
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -818,7 +818,7 @@ static void paint_mini_golf_hole_c(paint_session * session, uint8 rideIndex, uin
|
||||
LocationXY16 boundBox, boundBoxOffset;
|
||||
|
||||
bool drewSupports =
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -890,7 +890,7 @@ static void paint_mini_golf_hole_d(paint_session * session, uint8 rideIndex, uin
|
||||
if (trackSequence == 2)
|
||||
supportType = 1 - supportType;
|
||||
bool drewSupports =
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -982,7 +982,7 @@ static void paint_mini_golf_hole_e(paint_session * session, uint8 rideIndex, uin
|
||||
if (trackSequence == 2)
|
||||
supportType = 1 - supportType;
|
||||
bool drewSupports =
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -1109,7 +1109,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(sint32 trackType, sint32
|
||||
return paint_mini_golf_hole_e;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -341,5 +341,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(sint32 trackType,
|
||||
return paint_mini_helicopters_track_right_quarter_turn_1_tile;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ static void paint_monorail_cycles_track_right_quarter_turn_5_tiles(paint_session
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, 1, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
monorail_cycles_track_pieces_flat_quarter_turn_5_tiles, NULL, defaultRightQuarterTurn5TilesBoundLengths,
|
||||
monorail_cycles_track_pieces_flat_quarter_turn_5_tiles, nullptr, defaultRightQuarterTurn5TilesBoundLengths,
|
||||
defaultRightQuarterTurn5TilesBoundOffsets, get_current_rotation());
|
||||
|
||||
sint32 supportHeight =
|
||||
@@ -631,5 +631,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(sint32 trackType,
|
||||
return paint_monorail_cycles_track_right_quarter_turn_3_tiles;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ void vehicle_visual_observation_tower(paint_session * session, sint32 x, sint32
|
||||
image_id =
|
||||
baseImage_id | (vehicle->colours.body_colour << 19) | (vehicle->colours.trim_colour << 24) | IMAGE_TYPE_REMAP_2_PLUS;
|
||||
paint_struct * ps = sub_98197C(session, image_id, 0, 0, 2, 2, 41, z, -11, -11, z + 1, get_current_rotation());
|
||||
if (ps != NULL)
|
||||
if (ps != nullptr)
|
||||
{
|
||||
ps->tertiary_colour = vehicle->colours_extended;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ void vehicle_visual_observation_tower(paint_session * session, sint32 x, sint32
|
||||
image_id++;
|
||||
|
||||
ps = sub_98197C(session, image_id, 0, 0, 16, 16, 41, z, -5, -5, z + 1, get_current_rotation());
|
||||
if (ps != NULL)
|
||||
if (ps != nullptr)
|
||||
{
|
||||
ps->tertiary_colour = vehicle->colours_extended;
|
||||
}
|
||||
@@ -89,7 +89,7 @@ static void paint_observation_tower_base(paint_session * session, uint8 rideInde
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | session->TrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
@@ -191,5 +191,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(sint32 trackType
|
||||
return paint_observation_tower_section;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ static void paint_space_rings_structure(paint_session * session, Ride * ride, ui
|
||||
if (ride->num_stations == 0 || vehicleIndex < ride->num_vehicles)
|
||||
{
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
sint32 frameNum = direction;
|
||||
|
||||
@@ -75,7 +75,7 @@ static void paint_space_rings_structure(paint_session * session, Ride * ride, ui
|
||||
uint32 imageId = (baseImageId + frameNum) | imageColourFlags;
|
||||
sub_98197C(session, imageId, 0, 0, 20, 20, 23, height, -10, -10, height, get_current_rotation());
|
||||
|
||||
if (vehicle != NULL && vehicle->num_peeps > 0)
|
||||
if (vehicle != nullptr && vehicle->num_peeps > 0)
|
||||
{
|
||||
rct_peep * rider = GET_PEEP(vehicle->peep[0]);
|
||||
imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2(rider->tshirt_colour, rider->trousers_colour);
|
||||
@@ -100,7 +100,7 @@ static void paint_space_rings(paint_session * session, uint8 rideIndex, uint8 tr
|
||||
|
||||
uint32 imageId;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -184,7 +184,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(sint32 trackType, sint
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_space_rings;
|
||||
|
||||
@@ -202,7 +202,7 @@ static void paint_spiral_slide(paint_session * session, uint8 rideIndex, uint8 t
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
// Base
|
||||
uint32 imageId = ((direction & 1) ? SPIRAL_SLIDE_BASE_B : SPIRAL_SLIDE_BASE_A) | session->TrackColours[SCHEME_SUPPORTS];
|
||||
@@ -235,7 +235,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(sint32 trackType, sin
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_2_X_2)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_spiral_slide;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
static void facility_paint_setup(paint_session * session, uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height,
|
||||
rct_tile_element * tileElement)
|
||||
{
|
||||
bool hasSupports = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_3], NULL);
|
||||
bool hasSupports = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_3], nullptr);
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
@@ -99,5 +99,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_facility(sint32 trackType, sint32
|
||||
case FLAT_TRACK_ELEM_1_X_1_A:
|
||||
return facility_paint_setup;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -32,13 +32,13 @@
|
||||
static void shop_paint_setup(paint_session * session, uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height,
|
||||
rct_tile_element * tileElement)
|
||||
{
|
||||
bool hasSupports = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_3], NULL);
|
||||
bool hasSupports = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_3], nullptr);
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_ride_entry_vehicle * firstVehicleEntry = &rideEntry->vehicles[0];
|
||||
|
||||
if (rideEntry == NULL || firstVehicleEntry == NULL)
|
||||
if (rideEntry == nullptr || firstVehicleEntry == nullptr)
|
||||
{
|
||||
log_error("Error drawing shop, rideEntry or firstVehicleEntry is NULL.");
|
||||
return;
|
||||
@@ -78,5 +78,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_shop(sint32 trackType, sint32 dire
|
||||
case FLAT_TRACK_ELEM_1_X_1_B:
|
||||
return shop_paint_setup;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ static void paint_3d_cinema(paint_session * session, uint8 rideIndex, uint8 trac
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -130,7 +130,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(sint32 trackType, sint32
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_3d_cinema;
|
||||
|
||||
@@ -29,7 +29,7 @@ static void paint_enterprise_structure(paint_session * session, Ride * ride, sin
|
||||
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
if (rideEntry == nullptr)
|
||||
{
|
||||
@@ -46,7 +46,7 @@ static void paint_enterprise_structure(paint_session * session, Ride * ride, sin
|
||||
}
|
||||
|
||||
uint32 imageOffset = tile_element_get_direction_with_offset(tileElement, get_current_rotation());
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
imageOffset = (vehicle->vehicle_sprite_type << 2) + (((vehicle->sprite_direction >> 3) + get_current_rotation()) % 4);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ static void paint_enterprise_structure(paint_session * session, Ride * ride, sin
|
||||
|
||||
rct_drawpixelinfo * dpi = session->Unk140E9A8;
|
||||
|
||||
if (dpi->zoom_level == 0 && imageOffset < 12 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != NULL)
|
||||
if (dpi->zoom_level == 0 && imageOffset < 12 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr)
|
||||
{
|
||||
for (sint32 i = 0; i < 15; i++)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ static void paint_enterprise(paint_session * session, uint8 rideIndex, uint8 tra
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -171,7 +171,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(sint32 trackType, sint3
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_enterprise;
|
||||
|
||||
@@ -156,7 +156,7 @@ static void paint_go_karts_track_flat(paint_session * session, uint8 rideIndex,
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -194,19 +194,19 @@ static void paint_go_karts_track_25_deg_up(paint_session * session, uint8 rideIn
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 9, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height - 8, TUNNEL_7);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 10, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 11, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 12, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height - 8, TUNNEL_7);
|
||||
break;
|
||||
}
|
||||
@@ -247,19 +247,19 @@ static void paint_go_karts_track_flat_to_25_deg_up(paint_session * session, uint
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 1, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 2, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 3, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 4, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -300,19 +300,19 @@ static void paint_go_karts_track_25_deg_up_to_flat(paint_session * session, uint
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 5, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height - 8, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 6, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 7, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_left(session, height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 8, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
paint_util_push_tunnel_right(session, height - 8, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -446,7 +446,7 @@ static void paint_go_karts_station(paint_session * session, uint8 rideIndex, uin
|
||||
}
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -515,7 +515,7 @@ static void paint_go_karts_track_left_quarter_turn_1_tile(paint_session * sessio
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
@@ -563,5 +563,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(sint32 trackType, sint32
|
||||
return paint_go_karts_track_right_quarter_turn_1_tile;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -100,7 +100,7 @@ static void paint_launched_freefall_base(paint_session * session, uint8 rideInde
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL | session->TrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
@@ -201,5 +201,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(sint32 trackType
|
||||
return paint_launched_freefall_tower_section;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ static rct_vehicle * get_first_vehicle(Ride * ride)
|
||||
return GET_VEHICLE(vehicleSpriteIndex);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static void paint_magic_carpet_frame(paint_session * session, uint8 plane, uint8 direction, LocationXYZ16 offset,
|
||||
@@ -156,7 +156,7 @@ static void paint_magic_carpet_vehicle(paint_session * session, Ride * ride, uin
|
||||
if (dpi->zoom_level <= 1 && (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK))
|
||||
{
|
||||
rct_vehicle * vehicle = get_first_vehicle(ride);
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
uint32 baseImageId = IMAGE_TYPE_REMAP | IMAGE_TYPE_REMAP_2_PLUS | (vehicleImageId + 4);
|
||||
for (uint8 peepIndex = 0; peepIndex < vehicle->num_peeps; peepIndex += 2)
|
||||
@@ -178,7 +178,7 @@ static void paint_magic_carpet_structure(paint_session * session, Ride * ride, u
|
||||
rct_vehicle * vehicle = get_first_vehicle(ride);
|
||||
|
||||
uint32 swingImageId = 0;
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
swingImageId = vehicle->vehicle_sprite_type;
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_SPRITE;
|
||||
@@ -266,5 +266,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(sint32 trackType, sin
|
||||
case FLAT_TRACK_ELEM_1_X_4_A:
|
||||
return paint_magic_carpet;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ static void paint_motionsimulator_vehicle(paint_session * session, sint8 offsetX
|
||||
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
if (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)
|
||||
{
|
||||
uint16 spriteIndex = ride->vehicles[0];
|
||||
@@ -57,7 +57,7 @@ static void paint_motionsimulator_vehicle(paint_session * session, sint8 offsetX
|
||||
}
|
||||
|
||||
uint32 simulatorImageId = rideEntry->vehicles[0].base_image_id + direction;
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
if (vehicle->restraints_position >= 64)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ static void paint_motionsimulator(paint_session * session, uint8 rideIndex, uint
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = { session->MapPosition.x, session->MapPosition.y };
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
track_paint_util_paint_fences(session, edges, position, tileElement, ride, session->TrackColours[SCHEME_SUPPORTS], height,
|
||||
@@ -176,5 +176,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(sint32 trackType,
|
||||
case FLAT_TRACK_ELEM_2_X_2:
|
||||
return paint_motionsimulator;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ static void paint_pirate_ship_structure(paint_session * session, Ride * ride, ui
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
sint8 xOffset = !(direction & 1) ? axisOffset : 0;
|
||||
sint8 yOffset = (direction & 1) ? axisOffset : 0;
|
||||
@@ -84,7 +84,7 @@ static void paint_pirate_ship_structure(paint_session * session, Ride * ride, ui
|
||||
}
|
||||
|
||||
baseImageId = rideEntry->vehicles[0].base_image_id + pirate_ship_base_sprite_offset[direction];
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
sint32 rotation = (sint8)vehicle->vehicle_sprite_type;
|
||||
if (rotation != 0)
|
||||
@@ -121,7 +121,7 @@ static void paint_pirate_ship_structure(paint_session * session, Ride * ride, ui
|
||||
|
||||
rct_drawpixelinfo * dpi = session->Unk140E9A8;
|
||||
|
||||
if (dpi->zoom_level <= 1 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != NULL)
|
||||
if (dpi->zoom_level <= 1 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr)
|
||||
{
|
||||
sint32 peep = 0;
|
||||
sint32 offset = 1;
|
||||
@@ -179,7 +179,7 @@ static void paint_pirate_ship(paint_session * session, uint8 rideIndex, uint8 tr
|
||||
|
||||
if (relativeTrackSequence == 1 || relativeTrackSequence == 4)
|
||||
{
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
else if (direction & 1)
|
||||
{
|
||||
@@ -320,7 +320,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_pirate_ship(sint32 trackType, sint
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_5)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_pirate_ship;
|
||||
|
||||
@@ -100,7 +100,7 @@ static void paint_roto_drop_base(paint_session * session, uint8 rideIndex, uint8
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | session->TrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(session, imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
@@ -206,5 +206,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(sint32 trackType, sint32
|
||||
return paint_roto_drop_tower_section;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ static void paint_swinging_inverter_ship_structure(paint_session * session, Ride
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
sint8 xOffset = !(direction & 1) ? axisOffset : 0;
|
||||
sint8 yOffset = (direction & 1) ? axisOffset : 0;
|
||||
@@ -72,7 +72,7 @@ static void paint_swinging_inverter_ship_structure(paint_session * session, Ride
|
||||
}
|
||||
|
||||
uint32 vehicleImageId = rideEntry->vehicles[0].base_image_id + swinging_inverter_ship_base_sprite_offset[direction];
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
sint32 rotation = (sint8)vehicle->vehicle_sprite_type;
|
||||
if (rotation != 0)
|
||||
@@ -196,7 +196,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(sint32 trac
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_4_B)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_swinging_inverter_ship;
|
||||
|
||||
@@ -59,7 +59,7 @@ static void top_spin_paint_vehicle(paint_session * session, sint8 al, sint8 cl,
|
||||
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
uint8 seatRotation = 0;
|
||||
sint8 armRotation = 0;
|
||||
@@ -122,7 +122,7 @@ static void top_spin_paint_vehicle(paint_session * session, sint8 al, sint8 cl,
|
||||
|
||||
uint32 seatImageId;
|
||||
|
||||
if (vehicle != NULL && vehicle->restraints_position >= 64)
|
||||
if (vehicle != nullptr && vehicle->restraints_position >= 64)
|
||||
{
|
||||
// Open Restraints
|
||||
image_id = (vehicle->restraints_position - 64) >> 6;
|
||||
@@ -175,7 +175,7 @@ static void top_spin_paint_vehicle(paint_session * session, sint8 al, sint8 cl,
|
||||
boundBoxOffsetY, boundBoxOffsetZ, rotation);
|
||||
|
||||
rct_drawpixelinfo * dpi = session->Unk140E9A8;
|
||||
if (dpi->zoom_level < 2 && vehicle != NULL && vehicle->num_peeps != 0)
|
||||
if (dpi->zoom_level < 2 && vehicle != nullptr && vehicle->num_peeps != 0)
|
||||
{
|
||||
image_id = (seatImageId + (1 * 76)) |
|
||||
SPRITE_ID_PALETTE_COLOUR_2(vehicle->peep_tshirt_colours[0], vehicle->peep_tshirt_colours[1]);
|
||||
@@ -256,7 +256,7 @@ static void paint_top_spin(paint_session * session, uint8 rideIndex, uint8 track
|
||||
Ride * ride = get_ride(rideIndex);
|
||||
LocationXY16 position = session->MapPosition;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_TRACK], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -317,7 +317,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_topspin(sint32 trackType, sint32 d
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_top_spin;
|
||||
|
||||
@@ -28,7 +28,7 @@ static void paint_twist_structure(paint_session * session, Ride * ride, uint8 di
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
|
||||
rct_ride_entry * rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_vehicle * vehicle = NULL;
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
|
||||
if (rideEntry == nullptr)
|
||||
{
|
||||
@@ -47,7 +47,7 @@ static void paint_twist_structure(paint_session * session, Ride * ride, uint8 di
|
||||
}
|
||||
|
||||
uint32 frameNum = (direction * 88) % 216;
|
||||
if (vehicle != NULL)
|
||||
if (vehicle != nullptr)
|
||||
{
|
||||
frameNum += (vehicle->sprite_direction >> 3) << 4;
|
||||
frameNum += vehicle->vehicle_sprite_type;
|
||||
@@ -68,7 +68,7 @@ static void paint_twist_structure(paint_session * session, Ride * ride, uint8 di
|
||||
|
||||
rct_drawpixelinfo * dpi = session->Unk140E9A8;
|
||||
|
||||
if (dpi->zoom_level < 1 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != NULL)
|
||||
if (dpi->zoom_level < 1 && ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr)
|
||||
{
|
||||
|
||||
for (sint32 i = 0; i < vehicle->num_peeps; i += 2)
|
||||
@@ -98,7 +98,7 @@ static void paint_twist(paint_session * session, uint8 rideIndex, uint8 trackSeq
|
||||
|
||||
uint32 imageId;
|
||||
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, (direction & 1), 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
track_paint_util_paint_floor(session, edges, session->TrackColours[SCHEME_MISC], height, floorSpritesCork,
|
||||
get_current_rotation());
|
||||
@@ -174,7 +174,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_twist(sint32 trackType, sint32 dir
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return paint_twist;
|
||||
|
||||
@@ -118,9 +118,9 @@ static rct_tile_element * chairlift_paint_util_map_get_track_element_at_from_rid
|
||||
sint32 rideIndex)
|
||||
{
|
||||
rct_tile_element * tileElement = map_get_first_element_at(x >> 5, y >> 5);
|
||||
if (tileElement == NULL)
|
||||
if (tileElement == nullptr)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
do
|
||||
@@ -135,7 +135,7 @@ static rct_tile_element * chairlift_paint_util_map_get_track_element_at_from_rid
|
||||
return tileElement;
|
||||
} while (!tile_element_is_last_for_tile(tileElement++));
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
};
|
||||
|
||||
static bool chairlift_paint_util_is_first_track(uint8 rideIndex, const rct_tile_element * tileElement, LocationXY16 pos,
|
||||
@@ -155,7 +155,7 @@ static bool chairlift_paint_util_is_first_track(uint8 rideIndex, const rct_tile_
|
||||
rct_tile_element * nextTrack =
|
||||
chairlift_paint_util_map_get_track_element_at_from_ride_fuzzy(newPos.x, newPos.y, tileElement->base_height, rideIndex);
|
||||
|
||||
return nextTrack == NULL;
|
||||
return nextTrack == nullptr;
|
||||
}
|
||||
|
||||
static bool chairlift_paint_util_is_last_track(uint8 rideIndex, const rct_tile_element * tileElement, LocationXY16 pos,
|
||||
@@ -175,7 +175,7 @@ static bool chairlift_paint_util_is_last_track(uint8 rideIndex, const rct_tile_e
|
||||
rct_tile_element * nextTrack =
|
||||
chairlift_paint_util_map_get_track_element_at_from_ride_fuzzy(newPos.x, newPos.y, tileElement->base_height, rideIndex);
|
||||
|
||||
return nextTrack == NULL;
|
||||
return nextTrack == nullptr;
|
||||
}
|
||||
|
||||
static void chairlift_paint_station_ne_sw(paint_session * session, uint8 rideIndex, uint8 trackSequence, uint8 direction,
|
||||
@@ -192,7 +192,7 @@ static void chairlift_paint_station_ne_sw(paint_session * session, uint8 rideInd
|
||||
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
if (!isStart && !isEnd)
|
||||
{
|
||||
@@ -283,7 +283,7 @@ static void chairlift_paint_station_se_nw(paint_session * session, uint8 rideInd
|
||||
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_MISC], NULL);
|
||||
wooden_a_supports_paint_setup(session, 1, 0, height, session->TrackColours[SCHEME_MISC], nullptr);
|
||||
|
||||
if (!isStart && !isEnd)
|
||||
{
|
||||
@@ -668,5 +668,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(sint32 trackType, sint32
|
||||
return chairlift_paint_right_quarter_turn_1_tile;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -152,5 +152,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lift(sint32 trackType, sint32 dire
|
||||
return paint_lift_tower_section;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -601,7 +601,7 @@ static void paint_miniature_railway_track_flat(paint_session * session, uint8 ri
|
||||
paintGrooved = true;
|
||||
}
|
||||
|
||||
bool isSupported = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
bool isSupported = wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
uint32 imageId, imageIdAlt;
|
||||
|
||||
// In the following 3 calls to sub_98197C_rotated/sub_98199C_rotated, we add 1 to the
|
||||
@@ -662,7 +662,7 @@ static void paint_miniature_railway_station(paint_session * session, uint8 rideI
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
imageId = miniature_railway_station_floor[direction] | session->TrackColours[SCHEME_MISC];
|
||||
sub_98197C_rotated(session, direction, imageId, 0, 0, 32, 28, 2, height - 2, 0, 2, height);
|
||||
@@ -704,7 +704,7 @@ static void paint_miniature_railway_track_25_deg_up(paint_session * session, uin
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 45 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 45 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 56, 0x20);
|
||||
@@ -735,7 +735,7 @@ static void paint_miniature_railway_track_flat_to_25_deg_up(paint_session * sess
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 37 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 37 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 48, 0x20);
|
||||
@@ -766,7 +766,7 @@ static void paint_miniature_railway_track_25_deg_up_to_flat(paint_session * sess
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 41 + direction, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, direction & 1, 41 + direction, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(session, height + 40, 0x20);
|
||||
@@ -906,20 +906,20 @@ static void paint_miniature_railway_track_right_quarter_turn_5_tiles(paint_sessi
|
||||
if (right_quarter_turn_5_supports_type[direction][trackSequence] != -1)
|
||||
{
|
||||
bool isSupported = wooden_a_supports_paint_setup(session, right_quarter_turn_5_supports_type[direction][trackSequence],
|
||||
0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
if (isSupported == false || (trackSequence == 3 && direction == 2))
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, 2, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
miniature_railway_track_pieces_flat_quarter_turn_5_tiles, miniature_railway_right_quarter_turn_5_tiles_offsets,
|
||||
miniature_railway_right_quarter_turn_5_tiles_bound_lengths, NULL, get_current_rotation());
|
||||
miniature_railway_right_quarter_turn_5_tiles_bound_lengths, nullptr, get_current_rotation());
|
||||
}
|
||||
else
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, 2, height, direction, trackSequence, session->TrackColours[SCHEME_SUPPORTS],
|
||||
miniature_railway_right_quarter_turn_5_tiles_track_floor, NULL,
|
||||
miniature_railway_right_quarter_turn_5_tiles_track_floor, nullptr,
|
||||
miniature_railway_right_quarter_turn_5_tiles_bound_lengths,
|
||||
miniature_railway_right_quarter_turn_5_tiles_bound_offsets, get_current_rotation());
|
||||
|
||||
@@ -1016,7 +1016,7 @@ static void paint_miniature_railway_track_s_bend_left(paint_session * session, u
|
||||
}
|
||||
|
||||
bool isSupported = wooden_a_supports_paint_setup(session, s_bend_left_supports_type[direction][trackSequence], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
const LocationXY16 offsetList[] = {
|
||||
{ 0, 2 },
|
||||
@@ -1110,7 +1110,7 @@ static void paint_miniature_railway_track_s_bend_right(paint_session * session,
|
||||
}
|
||||
|
||||
bool isSupported = wooden_a_supports_paint_setup(session, s_bend_right_supports_type[direction][trackSequence], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
|
||||
const LocationXY16 offsetList[] = {
|
||||
{ 0, 2 },
|
||||
@@ -1235,14 +1235,14 @@ static void paint_miniature_railway_track_right_quarter_turn_3_tiles(paint_sessi
|
||||
{
|
||||
const uint8 supportType[] = { 4, 5, 2, 3 };
|
||||
isSupported = wooden_a_supports_paint_setup(session, supportType[direction], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
if (isSupported == false)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
miniature_railway_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets,
|
||||
defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn3TilesBoundLengths, nullptr, get_current_rotation());
|
||||
|
||||
// The following piece was missing in vanilla RCT2
|
||||
if (trackSequence == 1 && direction == 0)
|
||||
@@ -1255,7 +1255,7 @@ static void paint_miniature_railway_track_right_quarter_turn_3_tiles(paint_sessi
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_SUPPORTS],
|
||||
miniature_railway_right_quarter_turn_3_tile_track_floor, NULL, defaultRightQuarterTurn3TilesBoundLengths,
|
||||
miniature_railway_right_quarter_turn_3_tile_track_floor, nullptr, defaultRightQuarterTurn3TilesBoundLengths,
|
||||
miniature_railway_right_quarter_turn_3_tile_bound_offsets, get_current_rotation());
|
||||
|
||||
static const sint8 right_quarter_turn_3_tiles_sprite_map[] = { 0, -1, 1, 2 };
|
||||
@@ -1387,7 +1387,7 @@ static void paint_miniature_railway_track_left_eighth_to_diag(paint_session * se
|
||||
if (trackSequence != 4 || !isRightEighthToOrthog)
|
||||
{
|
||||
isSupported = wooden_a_supports_paint_setup(session, supportType[direction][trackSequence], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
uint32 imageId;
|
||||
if (isSupported == false)
|
||||
@@ -1525,7 +1525,7 @@ static void paint_miniature_railway_track_right_eighth_to_diag(paint_session * s
|
||||
if (trackSequence != 4 || !isLeftEighthToOrthog)
|
||||
{
|
||||
isSupported = wooden_a_supports_paint_setup(session, supportType[direction][trackSequence], 0, height,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
uint32 imageId;
|
||||
@@ -1658,7 +1658,7 @@ static void miniature_railway_track_diag_flat(paint_session * session, uint8 rid
|
||||
floorBoundSize = floors[supportType].bound_size;
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
isSupported =
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -1742,7 +1742,7 @@ static void miniature_railway_track_diag_25_deg_up(paint_session * session, uint
|
||||
floorBoundSize = floors[supportType].bound_size;
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports = wooden_supports_paint_setup(session, supportFunction, supportType, 0, height + heightDiff,
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -1798,7 +1798,7 @@ static void miniature_railway_track_diag_flat_to_25_deg_up(paint_session * sessi
|
||||
floorBoundSize = floors[supportType].bound_size;
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports =
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -1860,7 +1860,7 @@ static void miniature_railway_track_diag_25_deg_up_to_flat(paint_session * sessi
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports = wooden_supports_paint_setup(session, supportFunction, supportType, 0,
|
||||
height + supportOffsets[direction][trackSequence],
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -1932,7 +1932,7 @@ static void miniature_railway_track_diag_25_deg_down(paint_session * session, ui
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports = wooden_supports_paint_setup(session, supportFunction, supportType, 0,
|
||||
height + supportOffsets[direction][trackSequence],
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -2002,7 +2002,7 @@ static void miniature_railway_track_diag_flat_to_25_deg_down(paint_session * ses
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports = wooden_supports_paint_setup(session, supportFunction, supportType, 0,
|
||||
height + supportOffsets[direction][trackSequence],
|
||||
session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -2057,7 +2057,7 @@ static void miniature_railway_track_diag_25_deg_down_to_flat(paint_session * ses
|
||||
floorBoundSize = floors[supportType].bound_size;
|
||||
floorBoundOffset = floors[supportType].bound_offset;
|
||||
hasSupports =
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], NULL);
|
||||
wooden_a_supports_paint_setup(session, supportType, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
@@ -2157,5 +2157,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(sint32 trackType
|
||||
return miniature_railway_track_diag_25_deg_down_to_flat;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -670,7 +670,7 @@ static void paint_monorail_track_right_quarter_turn_5_tiles(paint_session * sess
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
monorail_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets,
|
||||
defaultRightQuarterTurn5TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn5TilesBoundLengths, nullptr, get_current_rotation());
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -934,7 +934,7 @@ static void paint_monorail_track_right_quarter_turn_3_tiles(paint_session * sess
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
session, 3, height, direction, trackSequence, session->TrackColours[SCHEME_TRACK],
|
||||
monorail_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets,
|
||||
defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
defaultRightQuarterTurn3TilesBoundLengths, nullptr, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_6);
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -1352,5 +1352,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_monorail(sint32 trackType, sint32
|
||||
return paint_monorail_track_diag_25_deg_down_to_flat;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -1758,5 +1758,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(sint32 trackTyp
|
||||
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_FLAT:
|
||||
return suspended_monorail_track_diag_25_deg_down_to_flat;
|
||||
}
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -159,5 +159,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(sint32 trackType, sint32
|
||||
return paint_boat_hire_track_right_quarter_turn_1_tile;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
@@ -1854,5 +1854,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(sint32 trackType, sin
|
||||
return dinghy_slide_track_right_quarter_turn_3_covered;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
Loaded 100 of 110 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user