refactor
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
void Rocket::update() {
|
||||
sprite.move(0.0f, speed);
|
||||
position.y += int(speed);
|
||||
position.y += static_cast<int>(speed);
|
||||
if(position.y < -100) {
|
||||
outOfBounds = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user