@@ -94,23 +94,23 @@ void ChangeWeatherDialog::InitChangeWeather(CUIXml& xmlDoc)
94
94
CUIXmlInit::Init3tButton (xmlDoc, " change_weather:btn_cancel" , 0 , CancelButton);
95
95
auto & gameWeathers = gMapListHelper .GetGameWeathers ();
96
96
Initialize (gameWeathers.size ());
97
- weatherItems .resize (gameWeathers.size ());
97
+ weathers .resize (gameWeathers.size ());
98
98
string256 path;
99
- for (u32 i = 0 ; i < weatherItems .size (); i++)
99
+ for (u32 i = 0 ; i < weathers .size (); i++)
100
100
{
101
101
xr_sprintf (path, " change_weather:btn_%s" , gameWeathers[i].m_weather_name .c_str ());
102
102
CUIXmlInit::Init3tButton (xmlDoc, path, 0 , GetButton (i).Button );
103
103
xr_sprintf (path, " change_weather:txt_%s" , gameWeathers[i].m_weather_name .c_str ());
104
104
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 ;
107
107
}
108
108
}
109
109
110
110
void ChangeWeatherDialog::OnButtonClick (int i)
111
111
{
112
112
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 );
114
114
Console->Execute (command);
115
115
HideDialog ();
116
116
}
@@ -124,22 +124,22 @@ void ChangeGameTypeDialog::InitChangeGameType(CUIXml& xmlDoc)
124
124
// XXX nitrocaster: get it from somewhere
125
125
const int gameTypeCount = 4 ;
126
126
Initialize (gameTypeCount);
127
- gameTypeItems .resize (gameTypeCount);
127
+ gameTypes .resize (gameTypeCount);
128
128
string256 path;
129
- for (u32 i = 0 ; i < gameTypeItems .size (); i++)
129
+ for (u32 i = 0 ; i < gameTypes .size (); i++)
130
130
{
131
131
xr_sprintf (path, " change_gametype:btn_%d" , i+1 );
132
132
CUIXmlInit::Init3tButton (xmlDoc, path, 0 , GetButton (i).Button );
133
133
xr_sprintf (path, " change_gametype:txt_%d" , i+1 );
134
134
CUIXmlInit::InitTextWnd (xmlDoc, path, 0 , GetButton (i).Text );
135
- gameTypeItems [i] = xmlDoc.ReadAttrib (path, 0 , " id" );
135
+ gameTypes [i] = xmlDoc.ReadAttrib (path, 0 , " id" );
136
136
}
137
137
}
138
138
139
139
void ChangeGameTypeDialog::OnButtonClick (int i)
140
140
{
141
141
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 ());
143
143
Console->Execute (command);
144
144
HideDialog ();
145
145
}
0 commit comments