@@ -94,23 +94,23 @@ void ChangeWeatherDialog::InitChangeWeather(CUIXml& xmlDoc)
9494 CUIXmlInit::Init3tButton (xmlDoc, " change_weather:btn_cancel" , 0 , CancelButton);
9595 auto & gameWeathers = gMapListHelper .GetGameWeathers ();
9696 Initialize (gameWeathers.size ());
97- weatherItems .resize (gameWeathers.size ());
97+ weathers .resize (gameWeathers.size ());
9898 string256 path;
99- for (u32 i = 0 ; i < weatherItems .size (); i++)
99+ for (u32 i = 0 ; i < weathers .size (); i++)
100100 {
101101 xr_sprintf (path, " change_weather:btn_%s" , gameWeathers[i].m_weather_name .c_str ());
102102 CUIXmlInit::Init3tButton (xmlDoc, path, 0 , GetButton (i).Button );
103103 xr_sprintf (path, " change_weather:txt_%s" , gameWeathers[i].m_weather_name .c_str ());
104104 CUIXmlInit::InitTextWnd (xmlDoc, path, 0 , GetButton (i).Text );
105- weatherItems [i].Name = gameWeathers[i].m_weather_name ;
106- weatherItems [i].Time = gameWeathers[i].m_start_time ;
105+ weathers [i].Name = gameWeathers[i].m_weather_name ;
106+ weathers [i].Time = gameWeathers[i].m_start_time ;
107107 }
108108}
109109
110110void ChangeWeatherDialog::OnButtonClick (int i)
111111{
112112 string1024 command;
113- xr_sprintf (command, " cl_votestart changeweather %s %s" , *weatherItems [i].Name , *weatherItems [i].Time );
113+ xr_sprintf (command, " cl_votestart changeweather %s %s" , *weathers [i].Name , *weathers [i].Time );
114114 Console->Execute (command);
115115 HideDialog ();
116116}
@@ -124,22 +124,22 @@ void ChangeGameTypeDialog::InitChangeGameType(CUIXml& xmlDoc)
124124 // XXX nitrocaster: get it from somewhere
125125 const int gameTypeCount = 4 ;
126126 Initialize (gameTypeCount);
127- gameTypeItems .resize (gameTypeCount);
127+ gameTypes .resize (gameTypeCount);
128128 string256 path;
129- for (u32 i = 0 ; i < gameTypeItems .size (); i++)
129+ for (u32 i = 0 ; i < gameTypes .size (); i++)
130130 {
131131 xr_sprintf (path, " change_gametype:btn_%d" , i+1 );
132132 CUIXmlInit::Init3tButton (xmlDoc, path, 0 , GetButton (i).Button );
133133 xr_sprintf (path, " change_gametype:txt_%d" , i+1 );
134134 CUIXmlInit::InitTextWnd (xmlDoc, path, 0 , GetButton (i).Text );
135- gameTypeItems [i] = xmlDoc.ReadAttrib (path, 0 , " id" );
135+ gameTypes [i] = xmlDoc.ReadAttrib (path, 0 , " id" );
136136 }
137137}
138138
139139void ChangeGameTypeDialog::OnButtonClick (int i)
140140{
141141 string1024 command;
142- xr_sprintf (command, " cl_votestart changegametype %s" , gameTypeItems [i].c_str ());
142+ xr_sprintf (command, " cl_votestart changegametype %s" , gameTypes [i].c_str ());
143143 Console->Execute (command);
144144 HideDialog ();
145145}
0 commit comments