MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Clear

Method Clear

src/fios_gui.cpp:49–65  ·  view source on GitHub ↗

* Reset read data. */

Source from the content-addressed store, hash-verified

47 * Reset read data.
48 */
49void LoadCheckData::Clear()
50{
51 this->checkable = false;
52 this->error = INVALID_STRING_ID;
53 this->error_msg.clear();
54
55 this->map_size_x = this->map_size_y = 256; // Default for old savegames which do not store mapsize.
56 this->current_date = CalendarTime::MIN_DATE;
57 this->landscape = {};
58 this->starting_year = {};
59
60 companies.clear();
61
62 this->gamelog.Reset();
63
64 ClearGRFConfigList(this->grfconfig);
65}
66
67/** Load game/scenario with optional content download */
68static constexpr std::initializer_list<NWidgetPart> _nested_load_dialog_widgets = {

Callers 15

OnClickMethod · 0.45
OnInvalidateDataMethod · 0.45
IniSaveSettingListFunction · 0.45
AISaveConfigFunction · 0.45
GameSaveConfigFunction · 0.45
GraphicsSetSaveConfigFunction · 0.45
GRFSaveConfigFunction · 0.45
openttd_mainFunction · 0.45
InitializeTownGuiFunction · 0.45
ResetLineCacheMethod · 0.45
MakeStationAreaSmallerFunction · 0.45

Calls 3

ClearGRFConfigListFunction · 0.85
clearMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected