@@ -164,7 +164,7 @@ cvar_t *g_ladder_steps;
164164cvar_t *g_lag_compensation;
165165cvar_t *g_map_list;
166166cvar_t *g_map_list_shuffle;
167- cvar_t *g_map_shuffle_once ;
167+ cvar_t *g_map_list_shuffle_once ;
168168cvar_t *g_map_pool;
169169cvar_t *g_match_lock;
170170cvar_t *g_matchstats;
@@ -827,7 +827,7 @@ static void PreInitGame() {
827827============
828828G_ShuffleMapListOnce
829829
830- Shuffle the map list once at server startup if g_map_shuffle_once is enabled.
830+ Shuffle the map list once at server startup if g_map_list_shuffle_once is enabled.
831831Forward declaration.
832832============
833833*/
@@ -1017,7 +1017,7 @@ static void InitGame() {
10171017 g_lag_compensation = gi.cvar (" g_lag_compensation" , " 1" , CVAR_NOFLAGS);
10181018 g_map_list = gi.cvar (" g_map_list" , " " , CVAR_NOFLAGS);
10191019 g_map_list_shuffle = gi.cvar (" g_map_list_shuffle" , " 1" , CVAR_NOFLAGS);
1020- g_map_shuffle_once = gi.cvar (" g_map_shuffle_once " , " 0" , CVAR_NOFLAGS);
1020+ g_map_list_shuffle_once = gi.cvar (" g_map_list_shuffle_once " , " 0" , CVAR_NOFLAGS);
10211021 g_map_pool = gi.cvar (" g_map_pool" , " " , CVAR_NOFLAGS);
10221022 g_match_lock = gi.cvar (" g_match_lock" , " 0" , CVAR_SERVERINFO);
10231023 g_matchstats = gi.cvar (" g_matchstats" , " 0" , CVAR_NOFLAGS);
@@ -2945,12 +2945,12 @@ inline std::vector<std::string> str_split(const std::string_view &str, char by)
29452945=================
29462946G_ShuffleMapListOnce
29472947
2948- Shuffle the map list once at server startup if g_map_shuffle_once is enabled.
2948+ Shuffle the map list once at server startup if g_map_list_shuffle_once is enabled.
29492949This provides randomized map order while maintaining predictability during a play session.
29502950=================
29512951*/
29522952static void G_ShuffleMapListOnce () {
2953- if (!g_map_shuffle_once ->integer || !*g_map_list->string )
2953+ if (!g_map_list_shuffle_once ->integer || !*g_map_list->string )
29542954 return ;
29552955
29562956 auto values = str_split (g_map_list->string , ' ' );
@@ -3017,8 +3017,8 @@ void Match_End() {
30173017 BeginIntermission (CreateTargetChangeLevel (level.mapname ));
30183018 return ;
30193019 } else {
3020- // [Paril-KEX] re-shuffle if necessary (skip if g_map_shuffle_once is enabled)
3021- if (g_map_list_shuffle->integer && !g_map_shuffle_once ->integer ) {
3020+ // [Paril-KEX] re-shuffle if necessary (skip if g_map_list_shuffle_once is enabled)
3021+ if (g_map_list_shuffle->integer && !g_map_list_shuffle_once ->integer ) {
30223022 auto values = str_split (g_map_list->string , ' ' );
30233023
30243024 if (values.size () == 1 ) {
0 commit comments