From: drjaska Date: Sun, 4 Jun 2023 14:11:32 +0000 (+0300) Subject: if sv_vote_gametype_options has no valid gametypes, default to current one X-Git-Tag: xonotic-v0.8.6~28^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a8440dfef8c73a02dc7033d95343d70ebbe9c5f;p=xonotic%2Fxonotic-data.pk3dir.git if sv_vote_gametype_options has no valid gametypes, default to current one --- diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index caa7a3c50..d29927234 100644 --- a/qcsrc/server/mapvoting.qc +++ b/qcsrc/server/mapvoting.qc @@ -89,6 +89,10 @@ int GameTypeVote_GetMask() gametype_mask = 0; for(j = 0; j < n; ++j) gametype_mask |= GameTypeVote_Type_FromString(argv(j)).m_flags; + + if (gametype_mask == 0) + gametype_mask |= MapInfo_CurrentGametype().m_flags; + return gametype_mask; }