summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-10 00:37:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-10 00:37:35 +0300
commitd78965b4c853ede29a0898cbf0c33c3cc3bbdfa3 (patch)
tree1c6343ee3fe4a309fb615f72e1bb7ba4dfb8aa14 /src/client.cpp
parent923633ae61b255c64dee9cf011382086453286d8 (diff)
downloadmv-d78965b4c853ede29a0898cbf0c33c3cc3bbdfa3.tar.gz
mv-d78965b4c853ede29a0898cbf0c33c3cc3bbdfa3.tar.bz2
mv-d78965b4c853ede29a0898cbf0c33c3cc3bbdfa3.tar.xz
mv-d78965b4c853ede29a0898cbf0c33c3cc3bbdfa3.zip
Possible load mods from local/ dir also.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 649c1f08c..3f049340f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1176,10 +1176,12 @@ int Client::gameExec()
Net::getPartyHandler()->clear();
if (chatLogger)
chatLogger->clear();
- if (mOptions.dataPath.empty())
- UpdaterWindow::unloadMods(mOldUpdates);
- else
+ if (!mOptions.dataPath.empty())
UpdaterWindow::unloadMods(mOptions.dataPath);
+ else
+ UpdaterWindow::unloadMods(mOldUpdates);
+ if (!mOptions.skipUpdate)
+ UpdaterWindow::unloadMods(mOldUpdates + "/fix/");
}
mOldState = mState;