Skip to content
Permalink
Browse files

Include mod paths when the host is setting the game up.

Previewing 3rd party maps causes a search path cleanup (and if switching back to in-game afterwards) so
they need to be added again.
  • Loading branch information...
KJeff01 committed Jun 16, 2019
1 parent 6bd1ca7 commit 96087b568b96907c851984d8a4141bcbcd7374b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/init.cpp
@@ -397,7 +397,7 @@ bool rebuildSearchPath(searchPathMode mode, bool force, const char *current_map)
// Add global and multiplay mods
PHYSFS_mount(curSearchPath->path, NULL, PHYSFS_APPEND);
addSubdirs(curSearchPath->path, "mods/music", PHYSFS_APPEND, nullptr, false);
if (NetPlay.isHost || !NetPlay.bComms)
if (NetPlay.isHost || !NetPlay.bComms || ingame.bHostSetup)
{
addSubdirs(curSearchPath->path, "mods/global", PHYSFS_APPEND, use_override_mods ? &override_mods : &global_mods, true);
addSubdirs(curSearchPath->path, "mods", PHYSFS_APPEND, use_override_mods ? &override_mods : &global_mods, true);

1 comment on commit 96087b5

@vaut

This comment has been minimized.

Copy link

commented on 96087b5 Jun 16, 2019

On linux, it works.
Thanks!!!

Please sign in to comment.
You can’t perform that action at this time.