From 9e55d4135b1db81df5564caa1f26c323dbd51939 Mon Sep 17 00:00:00 2001 From: bog Date: Sat, 2 Feb 2019 14:51:20 +0100 Subject: [PATCH] Fixed warnings. --- src/Hero.cpp | 3 ++- src/Kraken.cpp | 4 ++-- src/main.cpp | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Hero.cpp b/src/Hero.cpp index fa733d6..1c90158 100755 --- a/src/Hero.cpp +++ b/src/Hero.cpp @@ -75,7 +75,8 @@ bool Hero::attack() } else {m_speedX=0;m_speedY=0; m_attacking=false;hasAttacked=false;} - + + return false; } diff --git a/src/Kraken.cpp b/src/Kraken.cpp index b67d647..4723501 100755 --- a/src/Kraken.cpp +++ b/src/Kraken.cpp @@ -139,7 +139,7 @@ void Kraken::drawATentacle() m_tentacle.setPosition(m_coords[i]*TILE_WIDTH,m_coords[i+1]*TILE_HEIGHT); m_level->Getcase()->Getwindow()->draw(m_tentacle);} -if (ended){for(int i(0); i