summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-21 12:25:10 +0000
committertruebrain <truebrain@openttd.org>2011-12-21 12:25:10 +0000
commitda8777d4e590f2c4414453d88c306c57f964326d (patch)
tree262247e7c77001d5bd49d3b799c1776f7b7b2c23 /src/network
parent0f8360eee9b43a1ff4be7e86d2e92cb3240d62ae (diff)
downloadopenttd-da8777d4e590f2c4414453d88c306c57f964326d.tar.xz
(svn r23646) -Fix [FS#4901]: rescan the Game Scripts when done downloading one.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 4eef3e502..249cfdce1 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -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);