From: BuddyFriendGuy Date: Thu, 9 Apr 2015 02:06:21 +0000 (-0400) Subject: rewrite the comment; change function return to void X-Git-Tag: xonotic-v0.8.1~23^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5b60df1768faec87bf1ff0ea8022e4127064d4c6;p=xonotic%2Fxonotic-data.pk3dir.git rewrite the comment; change function return to void --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index b522d8987..b8e359026 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -187,7 +187,7 @@ float MapInfo_FilterGametype(int pGametype, int pFeatures, int pFlagsRequired, i return 1; } -float MapInfo_FilterString(string sf) +void MapInfo_FilterString(string sf) { // this function further filters _MapInfo_filtered, which is prepared by MapInfo_FilterGametype by string float i, j; @@ -212,7 +212,6 @@ float MapInfo_FilterString(string sf) // sometimes the glob isn't sorted nicely, so fix it here... heapsort(MapInfo_count, _MapInfo_FilterList_swap, _MapInfo_FilterList_cmp, world); - return 1; } void MapInfo_Filter_Free() diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 5aa94097e..021f2feec 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -118,7 +118,7 @@ void MapInfo_Enumerate(); // filter the info by game type mask (updates MapInfo_count) float MapInfo_progress; float MapInfo_FilterGametype(float gametype, float features, float pFlagsRequired, float pFlagsForbidden, float pAbortOnGenerate); // 1 on success, 0 on temporary failure (call it again next frame then; use MapInfo_progress as progress indicator) -float MapInfo_FilterString(string sf); // this one runs after MapInfo_FilterGametype to futhur filter the list by a string +void MapInfo_FilterString(string sf); // filter _MapInfo_filtered (created by MapInfo_FilterGametype) with keyword int MapInfo_CurrentFeatures(); // retrieves currently required features from cvars int MapInfo_CurrentGametype(); // retrieves current gametype from cvars int MapInfo_ForbiddenFlags(); // retrieves current flags from cvars