Author: sapient
Date: Thu Apr 12 00:43:23 2007
New Revision: 16772

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16772&view=rev
Log:
silence a couple of warnings

Modified:
    trunk/src/mouse_events.cpp
    trunk/src/unit_abilities.cpp

Modified: trunk/src/mouse_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=16772&r1=16771&r2=16772&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Thu Apr 12 00:43:23 2007
@@ -1009,7 +1009,7 @@
        }
        
        if (scrollx != 0 || scrolly != 0) {
-               struct CKey pressed;
+               CKey pressed;
                // Alt + mousewheel do an 90° rotation on the scroll direction
                if (pressed[SDLK_LALT] || pressed[SDLK_RALT])
                        gui_->scroll(scrolly,scrollx);

Modified: trunk/src/unit_abilities.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_abilities.cpp?rev=16772&r1=16771&r2=16772&view=diff
==============================================================================
--- trunk/src/unit_abilities.cpp (original)
+++ trunk/src/unit_abilities.cpp Thu Apr 12 00:43:23 2007
@@ -297,7 +297,7 @@
 {
        if (cache < 0)
                cache = (ability == "illuminates");
-       return cache;
+       return (cache != 0);
 }
 
 bool unit::ability_active(const std::string& ability,const config& cfg,const 
gamemap::location& loc) const


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to