@@ -53,11 +53,11 @@ void CTextureDescrMngr::LoadLTX(pcstr initial, bool listTHM)
5353 const auto processAssociation = [&](const CInifile::Item& item)
5454 {
5555 if (listTHM)
56- Msg (" \t\t %s = %s" , item.first .c_str (), item.second .c_str ());
56+ Msg (" \t\t %s = %s" , item.name .c_str (), item.value .c_str ());
5757
5858 lock.Enter ();
59- texture_desc& desc = m_texture_details[item.first ];
60- cl_dt_scaler*& dts = m_detail_scalers[item.first ];
59+ texture_desc& desc = m_texture_details[item.name ];
60+ cl_dt_scaler*& dts = m_detail_scalers[item.name ];
6161 lock.Leave ();
6262
6363 if (desc.m_assoc )
@@ -68,19 +68,19 @@ void CTextureDescrMngr::LoadLTX(pcstr initial, bool listTHM)
6868 string_path T;
6969 float s;
7070
71- const int res = sscanf (*item.second , " %[^,],%f" , T, &s);
72- R_ASSERT4 (res == 2 , " Bad texture association" , item.first .c_str (), fname);
71+ const int res = sscanf (*item.value , " %[^,],%f" , T, &s);
72+ R_ASSERT4 (res == 2 , " Bad texture association" , item.name .c_str (), fname);
7373 desc.m_assoc ->detail_name = T;
7474 if (dts)
7575 dts->scale = s;
7676 else
7777 dts = xr_new<cl_dt_scaler>(s);
7878
79- if (strstr (item.second .c_str (), " usage[diffuse_or_bump]" ))
79+ if (strstr (item.value .c_str (), " usage[diffuse_or_bump]" ))
8080 desc.m_assoc ->usage .set (texture_assoc::flDiffuseDetail | texture_assoc::flBumpDetail);
81- else if (strstr (item.second .c_str (), " usage[bump]" ))
81+ else if (strstr (item.value .c_str (), " usage[bump]" ))
8282 desc.m_assoc ->usage .set (texture_assoc::flBumpDetail);
83- else if (strstr (item.second .c_str (), " usage[diffuse]" ))
83+ else if (strstr (item.value .c_str (), " usage[diffuse]" ))
8484 desc.m_assoc ->usage .set (texture_assoc::flDiffuseDetail);
8585 };
8686 xr_parallel_for_each (data.Data , processAssociation);
@@ -97,10 +97,10 @@ void CTextureDescrMngr::LoadLTX(pcstr initial, bool listTHM)
9797 const auto processSpecification = [&](const CInifile::Item& item)
9898 {
9999 if (listTHM)
100- Msg (" \t\t %s = %s" , item.first .c_str (), item.second .c_str ());
100+ Msg (" \t\t %s = %s" , item.name .c_str (), item.value .c_str ());
101101
102102 lock.Enter ();
103- texture_desc& desc = m_texture_details[item.first ];
103+ texture_desc& desc = m_texture_details[item.name ];
104104 lock.Leave ();
105105
106106 if (desc.m_spec )
@@ -110,8 +110,8 @@ void CTextureDescrMngr::LoadLTX(pcstr initial, bool listTHM)
110110
111111 string_path bmode;
112112 const int res =
113- sscanf (item.second .c_str (), " bump_mode[%[^]]], material[%f]" , bmode, &desc.m_spec ->m_material );
114- R_ASSERT4 (res == 2 , " Bad texture specification" , item.first .c_str (), fname);
113+ sscanf (item.value .c_str (), " bump_mode[%[^]]], material[%f]" , bmode, &desc.m_spec ->m_material );
114+ R_ASSERT4 (res == 2 , " Bad texture specification" , item.name .c_str (), fname);
115115 if ((bmode[0 ] == ' u' ) && (bmode[1 ] == ' s' ) && (bmode[2 ] == ' e' ) && (bmode[3 ] == ' :' ))
116116 {
117117 // bump-map specified
0 commit comments