Skip to content

Commit

Permalink
map_series: replaced unordered_set to vector for O(n)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyAG committed Dec 29, 2023
1 parent e50b47f commit c9d690e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl_dll/discord_integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace discord_integration

// This list was specially created for a map series, let's say that "hl1_bhop_am" series have a several versions of maps (example: hl1_bhop_am_beta1), but in fact those maps are almost identical
// If the beginning of map name matches with what presented in the list, then we set the same name for the thumbnail as in the list (e.g. map name: hl1_bhop_uc1_beta1, thumbnail name: hl1_bhop_uc1)
const std::unordered_set<std::string> map_series {
const std::vector<std::string> map_series {
"hl1_bhop_am"s,
"hl1_bhop_bp1"s,
"hl1_bhop_bp2"s,
Expand Down

0 comments on commit c9d690e

Please sign in to comment.