diff options
| author | oy <Tom_Adams@web.de> | 2011-03-19 19:31:00 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-19 19:31:00 +0100 |
| commit | 3d63afacc29def1582610e5784a6a7f7fdafcb85 (patch) | |
| tree | a3f8a3fdfa5750f051b6549a7f47bf139e9fd702 /src | |
| parent | cb7ce30398219c972e897618472cebaf1ebfb38d (diff) | |
| download | zcatch-3d63afacc29def1582610e5784a6a7f7fdafcb85.tar.gz zcatch-3d63afacc29def1582610e5784a6a7f7fdafcb85.zip | |
fixed a problem with the country flag selector, changed a localisation and the format of a file
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/client/components/countryflags.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/components/menus_settings.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/components/countryflags.cpp b/src/game/client/components/countryflags.cpp index 3a56d43a..ae0217b2 100644 --- a/src/game/client/components/countryflags.cpp +++ b/src/game/client/components/countryflags.cpp @@ -59,7 +59,7 @@ void CCountryFlags::LoadCountryflagsIndexfile() // add entry CCountryFlag CountryFlag; - CountryFlag.m_CountryCode = str_toint(pReplacement); + CountryFlag.m_CountryCode = str_toint(pReplacement+3); CountryFlag.m_Texture = Graphics()->LoadTextureRaw(Info.m_Width, Info.m_Height, Info.m_Format, Info.m_pData, Info.m_Format, 0); mem_free(Info.m_pData); str_format(aBuf, sizeof(aBuf), "loaded country flag '%s'", aOrigin); diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 5fc90459..4a67a0ce 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -122,7 +122,7 @@ void CMenus::RenderSPPage0(CUIRect MainView) MainView.HSplitTop(200.0f, &Button, &MainView); static float s_ScrollValue = 0.0f; int OldSelected = -1; - UiDoListboxStart(&s_ScrollValue, &Button, 50.0f, Localize("Country flags"), "", m_pClient->m_pCountryFlags->Num(), 6, OldSelected, s_ScrollValue); + UiDoListboxStart(&s_ScrollValue, &Button, 50.0f, Localize("Country"), "", m_pClient->m_pCountryFlags->Num(), 6, OldSelected, s_ScrollValue); for(int i = 0; i < m_pClient->m_pCountryFlags->Num(); ++i) { |