mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 20:49:11 +00:00
(svn r23646) -Fix [FS#4901]: rescan the Game Scripts when done downloading one.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#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 "../querystring_gui.h"
|
||||
@@ -130,6 +131,10 @@ public:
|
||||
case CONTENT_TYPE_AI_LIBRARY:
|
||||
/* AI::Rescan calls the scanner. */
|
||||
break;
|
||||
case CONTENT_TYPE_GAME:
|
||||
case CONTENT_TYPE_GAME_LIBRARY:
|
||||
/* Game::Rescan calls the scanner. */
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_BASE_GRAPHICS:
|
||||
case CONTENT_TYPE_BASE_SOUNDS:
|
||||
@@ -161,6 +166,11 @@ public:
|
||||
AI::Rescan();
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_GAME:
|
||||
case CONTENT_TYPE_GAME_LIBRARY:
|
||||
Game::Rescan();
|
||||
break;
|
||||
|
||||
case CONTENT_TYPE_BASE_GRAPHICS:
|
||||
BaseGraphics::FindSets();
|
||||
SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_GAME_OPTIONS);
|
||||
|
Reference in New Issue
Block a user