silence a couple of warnings
This commit is contained in:
parent
44e2595ebf
commit
d35ac480ed
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue