diff --git a/res/gamedata/configs/mp/map_list.ltx b/res/gamedata/configs/mp/map_list.ltx index 0dc36f5e5fc..38bd861d05a 100644 --- a/res/gamedata/configs/mp/map_list.ltx +++ b/res/gamedata/configs/mp/map_list.ltx @@ -1,5 +1,5 @@ [weather] -Clear = 9:00 -Rain =16:00 -Night = 01:00 -Cloudy = 13:00 \ No newline at end of file +clear = 9:00 +rain = 16:00 +night = 01:00 +cloudy = 13:00 diff --git a/res/gamedata/configs/ui/voting_category.xml b/res/gamedata/configs/ui/voting_category.xml index 1327361d151..74a21284b96 100644 --- a/res/gamedata/configs/ui/voting_category.xml +++ b/res/gamedata/configs/ui/voting_category.xml @@ -124,30 +124,30 @@ mm_mp_cancel ui_inGame2_Mp_bigbuttone - + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + mp_weather_clear - - + + mp_weather_rain - - + + mp_weather_night - - + + mp_weather_cloudy - + diff --git a/res/gamedata/configs/ui/voting_category_16.xml b/res/gamedata/configs/ui/voting_category_16.xml index 8ba0cca7f9f..4c92a0cc987 100644 --- a/res/gamedata/configs/ui/voting_category_16.xml +++ b/res/gamedata/configs/ui/voting_category_16.xml @@ -124,30 +124,30 @@ mm_mp_cancel ui_inGame2_Mp_bigbuttone - + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + ui_inGame2_vote_button - - + + mp_weather_clear - - + + mp_weather_rain - - + + mp_weather_night - - + + mp_weather_cloudy - + diff --git a/src/xrGame/ui/ChangeWeatherDialog.cpp b/src/xrGame/ui/ChangeWeatherDialog.cpp index cf29ddd70a8..4188e6881cb 100644 --- a/src/xrGame/ui/ChangeWeatherDialog.cpp +++ b/src/xrGame/ui/ChangeWeatherDialog.cpp @@ -98,9 +98,9 @@ void ChangeWeatherDialog::InitChangeWeather(CUIXml& xmlDoc) string256 path; for (u32 i = 0; i < weatherItems.size(); i++) { - xr_sprintf(path, "change_weather:btn_%d", i+1); + xr_sprintf(path, "change_weather:btn_%s", gameWeathers[i].m_weather_name.c_str()); CUIXmlInit::Init3tButton(xmlDoc, path, 0, GetButton(i).Button); - xr_sprintf(path, "change_weather:txt_%d", i+1); + xr_sprintf(path, "change_weather:txt_%s", gameWeathers[i].m_weather_name.c_str()); CUIXmlInit::InitTextWnd(xmlDoc, path, 0, GetButton(i).Text); weatherItems[i].Name = gameWeathers[i].m_weather_name; weatherItems[i].Time = gameWeathers[i].m_start_time;