|
|
/* $Id$ */
|
|
|
|
|
|
/*
|
|
|
* This file is part of OpenTTD.
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
/** @file network_content_gui.cpp Implementation of the Network Content related GUIs. */
|
|
|
|
|
|
#if defined(ENABLE_NETWORK)
|
|
|
#include "../stdafx.h"
|
|
|
#include "../strings_func.h"
|
|
|
#include "../gfx_func.h"
|
|
|
#include "../window_func.h"
|
|
|
#include "../error.h"
|
|
|
#include "../ai/ai.hpp"
|
|
|
#include "../game/game.hpp"
|
|
|
#include "../base_media_base.h"
|
|
|
#include "../sortlist_type.h"
|
|
|
#include "../stringfilter_type.h"
|
|
|
#include "../querystring_gui.h"
|
|
|
#include "../core/geometry_func.hpp"
|
|
@@ -1159,14 +1158,12 @@ void ShowNetworkContentListWindow(Conten
|
|
|
}
|
|
|
|
|
|
DeleteWindowById(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_CONTENT_LIST);
|
|
|
new NetworkContentListWindow(&_network_content_list_desc, cv != NULL, types);
|
|
|
#else
|
|
|
ShowErrorMessage(STR_CONTENT_NO_ZLIB, STR_CONTENT_NO_ZLIB_SUB, WL_ERROR);
|
|
|
/* Connection failed... clean up the mess */
|
|
|
if (cv != NULL) {
|
|
|
for (ContentIterator iter = cv->Begin(); iter != cv->End(); iter++) delete *iter;
|
|
|
}
|
|
|
#endif /* WITH_ZLIB */
|
|
|
}
|
|
|
|
|
|
#endif /* ENABLE_NETWORK */
|