mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
Remove commented-out code (#12834)
This commit is contained in:
committed by
GitHub
parent
f7acb84e42
commit
55722a7ad4
@@ -423,9 +423,6 @@ rct_window* window_editor_object_selection_open()
|
||||
*/
|
||||
static void window_editor_object_selection_close(rct_window* w)
|
||||
{
|
||||
// if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
|
||||
// return;
|
||||
|
||||
unload_unselected_objects();
|
||||
editor_load_selected_objects();
|
||||
editor_object_flags_free();
|
||||
|
||||
@@ -207,12 +207,6 @@ static void window_install_track_invalidate(rct_window* w)
|
||||
{
|
||||
w->pressed_widgets &= ~(1 << WIDX_TOGGLE_SCENERY);
|
||||
}
|
||||
|
||||
// if (w->track_list.var_482 != 0xFFFF) {
|
||||
// w->disabled_widgets &= ~(1 << WIDX_TRACK_PREVIEW);
|
||||
// } else {
|
||||
// w->disabled_widgets |= (1 << WIDX_TRACK_PREVIEW);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -438,7 +438,6 @@ static void window_server_list_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi
|
||||
{
|
||||
if (screenCoords.y >= dpi->y + dpi->height)
|
||||
continue;
|
||||
// if (y + ITEM_HEIGHT < dpi->y) continue;
|
||||
|
||||
const auto& serverDetails = _serverList.GetServer(i);
|
||||
bool highlighted = i == w->selected_list_item;
|
||||
|
||||
@@ -597,9 +597,6 @@ static void window_themes_dropdown(rct_window* w, rct_widgetindex widgetIndex, i
|
||||
window_invalidate_all();
|
||||
_colour_index_1 = -1;
|
||||
_colour_index_2 = -1;
|
||||
|
||||
// if (gCurrentTheme >= 2)
|
||||
// themes_save_preset(gCurrentTheme);
|
||||
}
|
||||
break;
|
||||
case WIDX_THEMES_PRESETS_DROPDOWN:
|
||||
@@ -708,8 +705,6 @@ void window_themes_scrollmousedown(rct_window* w, int32_t scrollIndex, const Scr
|
||||
|
||||
void window_themes_scrollmouseover(rct_window* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords)
|
||||
{
|
||||
// if (_selected_tab == WINDOW_THEMES_TAB_SETTINGS)
|
||||
// return;
|
||||
}
|
||||
|
||||
static void window_themes_textinput(rct_window* w, rct_widgetindex widgetIndex, char* text)
|
||||
|
||||
@@ -90,11 +90,6 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator* enumerato
|
||||
WriteConvertFromAndToMessage(sourceFileType, destinationFileType);
|
||||
|
||||
gOpenRCT2Headless = true;
|
||||
// if (!openrct2_initialise())
|
||||
// {
|
||||
// Console::Error::WriteLine("Error while initialising OpenRCT2.");
|
||||
// return EXITCODE_FAIL;
|
||||
// }
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -457,12 +457,7 @@ static std::vector<TitleCommand> LegacyScriptRead(utf8* script, size_t scriptLen
|
||||
else if (_stricmp(token, "LOADSC") == 0)
|
||||
{
|
||||
command.Type = TITLE_SCRIPT_LOADSC;
|
||||
// Confirm the scenario exists
|
||||
// source_desc desc;
|
||||
// if (ScenarioSources::TryGetByName(part1, &desc))
|
||||
//{
|
||||
safe_strcpy(command.Scenario, part1, sizeof(command.Scenario));
|
||||
//}
|
||||
}
|
||||
}
|
||||
if (command.Type != TITLE_SCRIPT_UNDEFINED)
|
||||
|
||||
Reference in New Issue
Block a user