X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapinfo.qc;h=1e18ba3feb57cc2f3641a6ce60c18f9c6830a339;hb=5e3a7beca384caa6f3da36fe07b29aff942e7b3e;hp=1c7f7163ce8ec4c33383bc69ce961cb295d0c6ee;hpb=99a15ec6d46a049ac04446c17ad407551dd500e1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 1c7f7163c..1e18ba3fe 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -566,6 +566,15 @@ string _MapInfo_GetDefaultEx(float t) return ""; } +float _MapInfo_GetTeamPlayBool(float t) +{ + entity e; + for(e = MapInfo_Type_first; e; e = e.enemy) + if(t == e.items) + return e.team; + return FALSE; +} + void _MapInfo_Map_ApplyGametypeEx(string s, float pWantedType, float pThisType) { string sa, k, v;