diff --git a/Shooter.cpp b/Shooter.cpp index cf95dc6..f708529 100644 --- a/Shooter.cpp +++ b/Shooter.cpp @@ -157,7 +157,7 @@ void Shooter::gui() { sprite.setTexture(*ResourceManager::loadTexture(ShooterConsts::MAIN_MENU_GUI)); sprite.setTextureRect(sf::IntRect(243, 3, 9, 9)); sprite.scale(3, 3); - sprite.setPosition(screen->width() / 2.0f - 27.0f/2.0f, screen->height() / 2.0f - 27.0f/2.0f); + sprite.setPosition(static_cast(screen->width()) / 2.0f - 27.0f/2.0f, static_cast(screen->height()) / 2.0f - 27.0f/2.0f); sprite.setColor(sf::Color(0, 0, 0, 250)); screen->drawSprite(sprite); diff --git a/engine/animation/Interpolation.h b/engine/animation/Interpolation.h index 90ce54c..e6a1643 100644 --- a/engine/animation/Interpolation.h +++ b/engine/animation/Interpolation.h @@ -33,6 +33,7 @@ double Interpolation::Cos(double t) { } double Interpolation::Bezier(const Vec2D &p1, const Vec2D &p2, double t) { + // TODO: implement bezier curve without finding the root of equation t = Interpolation::Linear(t); double h = Consts::EPS;