From 026dc6cd709573e5c478794c8017dcf858fd1011 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sat, 20 Jan 2024 01:15:49 +0100 Subject: [PATCH] remove static cast --- src/Vec2d/Vec2d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Vec2d/Vec2d.h b/src/Vec2d/Vec2d.h index 8d2dc17..8fcabc6 100644 --- a/src/Vec2d/Vec2d.h +++ b/src/Vec2d/Vec2d.h @@ -33,8 +33,8 @@ public: } void applyVector(Sint16 *ox, Sint16 *oy) const { - *ox += static_cast(std::round(x)); - *oy += static_cast(std::round(y)); + *ox += std::round(x); + *oy += std::round(y); } void bump(BumpType bumpType, PaddleDirection paddleDirection) {