From 61cae4a761c2f72cda44ae269c7007b37a0c14a7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 26 Jun 2008 10:39:39 +0000 Subject: Misc. minor cleanups. (Yes, a huge amount of them but still...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libgui.cc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/libgui.cc') diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc index b39b8ca26b..8b5ae1db7f 100644 --- a/crawl-ref/source/libgui.cc +++ b/crawl-ref/source/libgui.cc @@ -1225,7 +1225,7 @@ static bool _can_use_item(item_def item, bool equipped) { // Misc. items/rods can always be evoked, cursed or not. if (item.base_type == OBJ_MISCELLANY || item_is_rod(item)) - return true; + return (true); // You can't unwield/fire a wielded cursed weapon/staff // but cursed armour and rings can be unwielded without problems. @@ -1237,7 +1237,7 @@ static bool _can_use_item(item_def item, bool equipped) return (item.base_type != OBJ_POTIONS && item.base_type != OBJ_FOOD); // In all other cases you can use the item in some way. - return true; + return (true); } static int _handle_mouse_motion(int mouse_x, int mouse_y, bool init) @@ -2349,15 +2349,21 @@ bool is_smart_cursor_enabled() void set_cursor_enabled(bool enabled) { - if (gui_smart_cursor) return; - if (enabled) TextRegionClass::_setcursortype(1); - else TextRegionClass::_setcursortype(0); + if (gui_smart_cursor) + return; + + if (enabled) + TextRegionClass::_setcursortype(1); + else + TextRegionClass::_setcursortype(0); } bool is_cursor_enabled() { - if (TextRegionClass::cursor_flag) return true; - return false; + if (TextRegionClass::cursor_flag) + return (true); + + return (false); } int wherex() -- cgit v1.2.3-54-g00ecf