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/defaults.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/defaults.cpp') diff --git a/src/defaults.cpp b/src/defaults.cpp index f8bf51394..095bf6c74 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -83,7 +83,7 @@ DefaultsData* getConfigDefaults() AddDEF("speechBubbleAlpha", 1.0F); AddDEF("MostUsedServerName0", "server.themanaworld.org"); AddDEF("visiblenames", true); - AddDEF("speech", static_cast(BeingSpeech::NO_NAME_IN_BUBBLE)); + AddDEF("speech", CAST_S32(BeingSpeech::NO_NAME_IN_BUBBLE)); AddDEF("showgender", true); AddDEF("showlevel", false); AddDEF("showMonstersTakedDamage", true); @@ -325,25 +325,25 @@ DefaultsData* getConfigDefaults() AddDEF("selfMouseHeal", true); AddDEF("serverslistupdate", ""); AddDEF("fadeoutmusic", true); - AddDEF("screenActionKeyboard", static_cast( + AddDEF("screenActionKeyboard", CAST_S32( InputAction::SHOW_KEYBOARD)); - AddDEF("screenActionButton0", static_cast(InputAction::TALK)); - AddDEF("screenActionButton1", static_cast( + AddDEF("screenActionButton0", CAST_S32(InputAction::TALK)); + AddDEF("screenActionButton1", CAST_S32( InputAction::TARGET_ATTACK)); - AddDEF("screenActionButton2", static_cast(InputAction::PICKUP)); - AddDEF("screenActionButton3", static_cast(InputAction::STOP_SIT)); - AddDEF("screenActionButton4", static_cast(InputAction::TARGET_NPC)); - AddDEF("screenActionButton5", static_cast( + AddDEF("screenActionButton2", CAST_S32(InputAction::PICKUP)); + AddDEF("screenActionButton3", CAST_S32(InputAction::STOP_SIT)); + AddDEF("screenActionButton4", CAST_S32(InputAction::TARGET_NPC)); + AddDEF("screenActionButton5", CAST_S32( InputAction::WINDOW_STATUS)); - AddDEF("screenActionButton6", static_cast( + AddDEF("screenActionButton6", CAST_S32( InputAction::WINDOW_INVENTORY)); - AddDEF("screenActionButton7", static_cast(InputAction::WINDOW_SKILL)); - AddDEF("screenActionButton8", static_cast( + AddDEF("screenActionButton7", CAST_S32(InputAction::WINDOW_SKILL)); + AddDEF("screenActionButton8", CAST_S32( InputAction::WINDOW_SOCIAL)); - AddDEF("screenActionButton9", static_cast(InputAction::WINDOW_DEBUG)); - AddDEF("screenActionButton10", static_cast( + AddDEF("screenActionButton9", CAST_S32(InputAction::WINDOW_DEBUG)); + AddDEF("screenActionButton10", CAST_S32( InputAction::CHANGE_TRADE)); - AddDEF("screenActionButton11", static_cast(InputAction::DIRECT_DOWN)); + AddDEF("screenActionButton11", CAST_S32(InputAction::DIRECT_DOWN)); AddDEF("screenButtonsFormat", 0); AddDEF("autoresizeminimaps", false); AddDEF("showGuildOnline", false); -- cgit v1.2.3-60-g2f50