From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/being/crazymoves.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/being/crazymoves.cpp') diff --git a/src/being/crazymoves.cpp b/src/being/crazymoves.cpp index 34441d6e6..3eb3fd3f4 100644 --- a/src/being/crazymoves.cpp +++ b/src/being/crazymoves.cpp @@ -738,17 +738,17 @@ void CrazyMoves::crazyMoveAe() if (emo == '?') { srand(tick_time); - emoteId = static_cast( + emoteId = CAST_U8( 1 + (rand() % EmoteDB::size())); } else { if (emo >= '0' && emo <= '9') - emoteId = static_cast(emo - '0' + 1); + emoteId = CAST_U8(emo - '0' + 1); else if (emo >= 'a' && emo <= 'z') - emoteId = static_cast(emo - 'a' + 11); + emoteId = CAST_U8(emo - 'a' + 11); else if (emo >= 'A' && emo <= 'Z') - emoteId = static_cast(emo - 'A' + 37); + emoteId = CAST_U8(emo - 'A' + 37); } if (mMoveProgram[settings.crazyMoveState - 1] == 'e') localPlayer->emote(emoteId); -- cgit v1.2.3-70-g09d2