1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(svn r17133) -Codechange: generalise the code that searches for base graphics

This commit is contained in:
rubidium
2009-08-09 16:54:03 +00:00
parent b7e746f72c
commit f118932643
13 changed files with 633 additions and 497 deletions

View File

@@ -12,6 +12,7 @@
#include "../window_func.h"
#include "../gui.h"
#include "../variables.h"
#include "../base_media_base.h"
#include "network_content.h"
#include "table/strings.h"
@@ -21,7 +22,6 @@
#endif
extern bool TarListAddFile(const char *filename);
extern bool HasGraphicsSet(const ContentInfo *ci, bool md5sum);
extern bool HasScenario(const ContentInfo *ci, bool md5sum);
ClientNetworkContentSocketHandler _network_content_client;
@@ -79,7 +79,7 @@ DEF_CONTENT_RECEIVE_COMMAND(Client, PACKET_CONTENT_SERVER_INFO)
break;
case CONTENT_TYPE_BASE_GRAPHICS:
proc = HasGraphicsSet;
proc = BaseGraphics::HasSet;
break;
case CONTENT_TYPE_AI:

View File

@@ -11,7 +11,7 @@
#include "../window_gui.h"
#include "../gui.h"
#include "../ai/ai.hpp"
#include "../gfxinit.h"
#include "../base_media_base.h"
#include "../sortlist_type.h"
#include "../querystring_gui.h"
#include "network_content.h"
@@ -92,7 +92,7 @@ public:
break;
case CONTENT_TYPE_BASE_GRAPHICS:
FindGraphicsSets();
BaseGraphics::FindSets();
break;
case CONTENT_TYPE_NEWGRF: