From: Mario Date: Fri, 30 Sep 2022 09:49:33 +0000 (+1000) Subject: Adjust the map size diameter needed for some gamemodes to 3250, fixes medium sized... X-Git-Tag: xonotic-v0.8.6~328^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c235e77a8236141d13bf5587636b4dae9b6e68cc;p=xonotic%2Fxonotic-data.pk3dir.git Adjust the map size diameter needed for some gamemodes to 3250, fixes medium sized maps generating with support for Duel --- diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh b/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh index 3b3dace64..ad5909eb2 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh +++ b/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh @@ -26,7 +26,7 @@ CLASS(ClanArena, Gametype) } METHOD(ClanArena, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; } diff --git a/qcsrc/common/gamemodes/gamemode/duel/duel.qh b/qcsrc/common/gamemodes/gamemode/duel/duel.qh index 298e62e00..eb0e948b8 100644 --- a/qcsrc/common/gamemodes/gamemode/duel/duel.qh +++ b/qcsrc/common/gamemodes/gamemode/duel/duel.qh @@ -10,7 +10,7 @@ CLASS(Duel, Gametype) } METHOD(Duel, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - return (diameter < 16384); + return (diameter < 3250); } METHOD(Duel, m_isForcedSupported, bool(Gametype this)) { diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh b/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh index 61d3b91e9..9620ba835 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh +++ b/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh @@ -29,7 +29,7 @@ CLASS(FreezeTag, Gametype) } METHOD(FreezeTag, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; } diff --git a/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh b/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh index d0e23940a..eeee581f4 100644 --- a/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh +++ b/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh @@ -23,7 +23,7 @@ CLASS(TeamDeathmatch, Gametype) } METHOD(TeamDeathmatch, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; }