From: terencehill Date: Mon, 29 Jan 2018 18:11:33 +0000 (+0100) Subject: LMS: don't force auto join playing in a campaign level; it fixes #1856 "Campaign... X-Git-Tag: xonotic-v0.8.5~2067^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43f73d2d2d8cbd1c5656a327b5c9e9d99b1da6c7;p=xonotic%2Fxonotic-data.pk3dir.git LMS: don't force auto join playing in a campaign level; it fixes #1856 "Campaign: Level 14 - LMS starts automatically without showing MOTD/explanation" --- diff --git a/qcsrc/server/mutators/mutator/gamemode_lms.qc b/qcsrc/server/mutators/mutator/gamemode_lms.qc index 776484344..9b8e7d880 100644 --- a/qcsrc/server/mutators/mutator/gamemode_lms.qc +++ b/qcsrc/server/mutators/mutator/gamemode_lms.qc @@ -250,6 +250,8 @@ MUTATOR_HOOKFUNCTION(lms, ClientConnect) MUTATOR_HOOKFUNCTION(lms, AutoJoinOnConnection) { + if(autocvar_g_campaign) + return false; return true; }