about summary refs log tree commit diff
path: root/src/game/client/components/countryflags.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-31 02:04:46 +0200
committeroy <Tom_Adams@web.de>2011-07-31 02:04:46 +0200
commit10c3e844d77996f6a383791edc673bd7855dd321 (patch)
treee4fc0f1bcfd7460485e8fc92fed3788a6e9da1a1 /src/game/client/components/countryflags.h
parent8d0cc2a825b39b58d9a9dc3d884159fb9255fea2 (diff)
downloadzcatch-10c3e844d77996f6a383791edc673bd7855dd321.tar.gz
zcatch-10c3e844d77996f6a383791edc673bd7855dd321.zip
show alpha2 country code strings next to the flag in the country code selectors. Closes #805
Diffstat (limited to 'src/game/client/components/countryflags.h')
-rw-r--r--src/game/client/components/countryflags.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/client/components/countryflags.h b/src/game/client/components/countryflags.h
index 15eb8598..ad24a762 100644
--- a/src/game/client/components/countryflags.h
+++ b/src/game/client/components/countryflags.h
@@ -12,9 +12,10 @@ public:
 	struct CCountryFlag
 	{
 		int m_CountryCode;
+		char m_aCountryCodeString[8];
 		int m_Texture;
 
-		bool operator<(const CCountryFlag &Other) { return m_CountryCode < Other.m_CountryCode; }
+		bool operator<(const CCountryFlag &Other) { return str_comp(m_aCountryCodeString, Other.m_aCountryCodeString) < 0; }
 	};
 
 	void OnInit();