@@ -130,7 +130,7 @@ void CUIMapList::OnListItemClicked()
130130
131131 CUIListBoxItem* itm = m_pList1->GetSelectedItem ();
132132 u32 _idx = (u32 )(__int64)(itm->GetData ());
133- const SGameTypeMaps::SMapItm & M = GetMapNameInt (GetCurGameType (), _idx);
133+ const MPLevelDesc & M = GetMapNameInt (GetCurGameType (), _idx);
134134
135135 map_name += M.map_name .c_str ();
136136 xr_string full_name = map_name + " .dds" ;
@@ -203,7 +203,7 @@ const char* CUIMapList::GetCommandLine(LPCSTR player_name){
203203 return NULL ;
204204
205205 u32 _idx = (u32 )(__int64)(itm->GetData ());
206- const SGameTypeMaps::SMapItm & M = GetMapNameInt (GetCurGameType (), _idx);
206+ const MPLevelDesc & M = GetMapNameInt (GetCurGameType (), _idx);
207207
208208 m_command.clear ();
209209 m_command = " start server(" ;
@@ -248,7 +248,7 @@ void CUIMapList::LoadMapList()
248248{
249249 const auto & weathers = gMapListHelper .GetGameWeathers ();
250250 u32 cnt = 0 ;
251- for (const SGameWeathers & weather : weathers)
251+ for (const MPWeatherDesc & weather : weathers)
252252 AddWeather (weather.Name , weather.StartTime , cnt++);
253253 if (weathers.size () > 0 )
254254 m_pWeatherSelector->SetItemIDX (0 );
@@ -275,7 +275,7 @@ void CUIMapList::SaveMapList()
275275 {
276276 CUIListBoxItem* itm = m_pList2->GetItemByIDX (idx);
277277 u32 _idx = (u32 )(__int64)(itm->GetData ());
278- const SGameTypeMaps::SMapItm & M = GetMapNameInt (GetCurGameType (), _idx);
278+ const MPLevelDesc & M = GetMapNameInt (GetCurGameType (), _idx);
279279
280280 xr_sprintf (map_name, " sv_addmap %s/ver=%s" , M.map_name .c_str (), M.map_ver .c_str () );
281281 pW->w_string (map_name);
@@ -426,7 +426,7 @@ bool CUIMapList::IsEmpty()
426426 return 0 == m_pList2->GetSize ();
427427}
428428
429- const SGameTypeMaps::SMapItm & CUIMapList::GetMapNameInt (EGameIDs _type, u32 idx)
429+ const MPLevelDesc & CUIMapList::GetMapNameInt (EGameIDs _type, u32 idx)
430430{
431431 const SGameTypeMaps& M = gMapListHelper .GetMapListFor (_type);
432432 R_ASSERT (M.m_map_names .size ()>idx);
0 commit comments