]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapinfo.qc
Port some minor cleanups from the guide branch
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapinfo.qc
index 1b3fa8faf7d34a46925a337174447423e4ecd220..3ef0b74b7eee71f936a4fbaed611eae65c0aceef 100644 (file)
@@ -253,11 +253,9 @@ string unquote(string s)
        return "";
 }
 
-float MapInfo_Get_ByID(float i)
+bool MapInfo_Get_ByID(int i)
 {
-       if(MapInfo_Get_ByName(MapInfo_BSPName_ByID(i), 0, NULL))
-               return 1;
-       return 0;
+       return MapInfo_Get_ByName(MapInfo_BSPName_ByID(i), 0, NULL) ? true : false;
 }
 
 string _MapInfo_Map_worldspawn_music;