From 5b60df1768faec87bf1ff0ea8022e4127064d4c6 Mon Sep 17 00:00:00 2001 From: BuddyFriendGuy Date: Wed, 8 Apr 2015 22:06:21 -0400 Subject: [PATCH] rewrite the comment; change function return to void --- qcsrc/common/mapinfo.qc | 3 +-- qcsrc/common/mapinfo.qh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2