X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapinfo.qh;h=2dd84596e46991e8f3f75daeb63b524273825d01;hb=48d21b537ad85a66c05076afde4c33615da868b7;hp=4c0fd782904bab4993f0839d428210bb42b2746d;hpb=343a058d7b1c5e28dda77ab5c6493a367400876e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 4c0fd7829..2dd84596e 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -458,7 +458,7 @@ REGISTER_GAMETYPE(KEEPAWAY, NEW(Keepaway)); CLASS(Invasion, Gametype) INIT(Invasion) { - this.gametype_init(this, _("Invasion"),"inv","g_invasion",false,"","pointlimit=50 teams=0",_("Survive against waves of monsters")); + this.gametype_init(this, _("Invasion"),"inv","g_invasion",false,"","pointlimit=50 teams=0 type=0",_("Survive against waves of monsters")); } METHOD(Invasion, m_parse_mapinfo, bool(string k, string v)) { @@ -466,6 +466,9 @@ CLASS(Invasion, Gametype) case "teams": cvar_set("g_invasion_teams", v); return true; + case "type": + cvar_set("g_invasion_type", v); + return true; } return false; }