]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LMS: don't force auto join playing in a campaign level; it fixes #1856 "Campaign...
authorterencehill <piuntn@gmail.com>
Mon, 29 Jan 2018 18:11:33 +0000 (19:11 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 29 Jan 2018 18:11:33 +0000 (19:11 +0100)
qcsrc/server/mutators/mutator/gamemode_lms.qc

index 77648434436182640b86eca028848dae65c8fc40..9b8e7d88011263272d4932f360b7508d690331c6 100644 (file)
@@ -250,6 +250,8 @@ MUTATOR_HOOKFUNCTION(lms, ClientConnect)
 
 MUTATOR_HOOKFUNCTION(lms, AutoJoinOnConnection)
 {
+       if(autocvar_g_campaign)
+               return false;
        return true;
 }