diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-28 14:53:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-28 14:53:23 +0300 |
commit | 8290f1ab7f54eea8a834155df9a6751ca4682bc9 (patch) | |
tree | 944d1a09a740a302ba01f98ce4a8eed89c84d68d /src | |
parent | 009b8bb6528cd3380474dc5ba29903c55c8f6fef (diff) | |
download | plus-8290f1ab7f54eea8a834155df9a6751ca4682bc9.tar.gz plus-8290f1ab7f54eea8a834155df9a6751ca4682bc9.tar.bz2 plus-8290f1ab7f54eea8a834155df9a6751ca4682bc9.tar.xz plus-8290f1ab7f54eea8a834155df9a6751ca4682bc9.zip |
Use variables from paths.xml for team badges file name.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/being.cpp | 6 | ||||
-rw-r--r-- | src/defaults.cpp | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 4112ef634..363ff6c5f 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3713,9 +3713,9 @@ void Being::showBadges(const bool show) if (show && mTeamId) { mTeamBadge = AnimatedSprite::load( - strprintf("%steam%d.xml", - paths.getStringValue("badges").c_str(), - mTeamId)); + paths.getStringValue("badges") + + paths.getStringValue(strprintf("team%dbadge", + mTeamId))); } } diff --git a/src/defaults.cpp b/src/defaults.cpp index 630120cff..0a1983558 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -601,6 +601,9 @@ DefaultsData* getPathsDefaults() AddDEF("cartEffectName", "cart"); AddDEF("ridingEffectName", "riding"); AddDEF("gmTabMinimalLevel", "2"); + AddDEF("team1badge", "team1.xml"); + AddDEF("team2badge", "team2.xml"); + AddDEF("team3badge", "team3.xml"); return configData; } |