mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 12:40:12 +01:00
remove static cast
This commit is contained in:
parent
911f51da78
commit
026dc6cd70
@ -33,8 +33,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void applyVector(Sint16 *ox, Sint16 *oy) const {
|
void applyVector(Sint16 *ox, Sint16 *oy) const {
|
||||||
*ox += static_cast<int>(std::round(x));
|
*ox += std::round(x);
|
||||||
*oy += static_cast<int>(std::round(y));
|
*oy += std::round(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bump(BumpType bumpType, PaddleDirection paddleDirection) {
|
void bump(BumpType bumpType, PaddleDirection paddleDirection) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user