Skip to content

Commit 5ca44fe

Browse files
Awesomerlyrtldg
andauthored
Fix duped maps in !nominate when there are multiple end-zones (#1256)
Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com>
1 parent 460664f commit 5ca44fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/sourcemod/scripting/shavit-mapchooser.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ void LoadMapList()
11601160

11611161
char buffer[512];
11621162

1163-
FormatEx(buffer, sizeof(buffer), "SELECT `map` FROM `%smapzones` WHERE `type` = 1 AND `track` = 0 ORDER BY `map`", g_cSQLPrefix);
1163+
FormatEx(buffer, sizeof(buffer), "SELECT DISTINCT `map` FROM `%smapzones` WHERE `type` = 1 AND `track` = 0 ORDER BY `map`", g_cSQLPrefix);
11641164
QueryLog(g_hDatabase, LoadZonedMapsCallback, buffer, _, DBPrio_High);
11651165
}
11661166
case MapListFolder:
@@ -1196,7 +1196,7 @@ void LoadMapList()
11961196
}
11971197

11981198
char buffer[512];
1199-
FormatEx(buffer, sizeof(buffer), "SELECT `map` FROM `%smapzones` WHERE `type` = 1 AND `track` = 0 ORDER BY `map`", g_cSQLPrefix);
1199+
FormatEx(buffer, sizeof(buffer), "SELECT DISTINCT `map` FROM `%smapzones` WHERE `type` = 1 AND `track` = 0 ORDER BY `map`", g_cSQLPrefix);
12001200
QueryLog(g_hDatabase, LoadZonedMapsCallbackMixed, buffer, _, DBPrio_High);
12011201
}
12021202
}

0 commit comments

Comments
 (0)