silence a couple of warnings

This commit is contained in:
Patrick Parker 2007-04-11 22:43:23 +00:00
parent 44e2595ebf
commit d35ac480ed
2 changed files with 2 additions and 2 deletions

View file

@ -1009,7 +1009,7 @@ void mouse_handler::mouse_press(const SDL_MouseButtonEvent& event, const bool br
}
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);

View file

@ -297,7 +297,7 @@ static bool cache_illuminates(int &cache, std::string const &ability)
{
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