diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
commit | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch) | |
tree | 798117abd4dc7e610997d59d530a96ddc1509f53 /src/gamemodifiers.cpp | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | manaplus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz manaplus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 manaplus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz manaplus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/gamemodifiers.cpp')
-rw-r--r-- | src/gamemodifiers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamemodifiers.cpp b/src/gamemodifiers.cpp index 774a68955..614ea1504 100644 --- a/src/gamemodifiers.cpp +++ b/src/gamemodifiers.cpp @@ -55,7 +55,7 @@ std::string GameModifiers::get##name1##String() \ { \ return gettext(getVarItem(&m##name1##Strings[0], \ - static_cast<unsigned>(settings.name2), m##name1##Size)); \ + CAST_U32(settings.name2), m##name1##Size)); \ } #define addModifier2(name1, name2, str, sz, ...) \ @@ -289,7 +289,7 @@ std::string GameModifiers::getQuickDropCounterString() const unsigned int cnt = settings.quickDropCounter; if (cnt > 9) { - return strprintf("(%c) drop counter %u", static_cast<signed char>( + return strprintf("(%c) drop counter %u", CAST_S8( 'a' + cnt - 10), cnt); } else @@ -300,7 +300,7 @@ std::string GameModifiers::getQuickDropCounterString() void GameModifiers::setQuickDropCounter(const int n) { - if (n < 1 || n >= static_cast<signed>(mQuickDropCounterSize)) + if (n < 1 || n >= CAST_S32(mQuickDropCounterSize)) return; settings.quickDropCounter = n; config.setValue("quickDropCounter", n); |