Skip to content
Snippets Groups Projects
Commit 73dc953c authored by echicken's avatar echicken
Browse files

Fixed a bug preventing aerial sprites from coming to a stop.

parent 09d45d5a
No related branches found
No related tags found
No related merge requests found
......@@ -625,7 +625,7 @@ Sprite.Aerial = function(fileName, parentFrame, x, y, bearing, position) {
} else if(this.ini.movement == "rotating" && this.ini.constantmotion == 0) {
this.move("reverse");
} else {
if(this.ini.speed == this.ini.speedmin)
if(this.ini.speed >= this.ini.speedmin)
this.ini.speed = 0;
if(this.ini.speed <= this.ini.speedmin && this.ini.speed != 0)
this.ini.speed = this.ini.speed + this.ini.speedstep;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment