Skip to content

Commit

Permalink
Include mod paths when the host is setting the game up.
Browse files Browse the repository at this point in the history
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 96087b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Expand Up @@ -397,7 +397,7 @@ bool rebuildSearchPath(searchPathMode mode, bool force, const char *current_map)
// Add global and multiplay mods // Add global and multiplay mods
PHYSFS_mount(curSearchPath->path, NULL, PHYSFS_APPEND); PHYSFS_mount(curSearchPath->path, NULL, PHYSFS_APPEND);
addSubdirs(curSearchPath->path, "mods/music", PHYSFS_APPEND, nullptr, false); 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/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); addSubdirs(curSearchPath->path, "mods", PHYSFS_APPEND, use_override_mods ? &override_mods : &global_mods, true);
Expand Down

1 comment on commit 96087b5

@vaut
Copy link

@vaut vaut commented on 96087b5 Jun 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On linux, it works.
Thanks!!!

Please sign in to comment.