Commit d9bd99d5 authored by Sam Lantinga's avatar Sam Lantinga

minor bug

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403295
parent b19daa44
...@@ -129,7 +129,7 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite) ...@@ -129,7 +129,7 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
position->x += velocity->x; position->x += velocity->x;
} }
position->y += velocity->y; position->y += velocity->y;
if ((position->y < 0) || (position->y >= (window_h - sprite_w))) { if ((position->y < 0) || (position->y >= (window_h - sprite_h))) {
velocity->y = -velocity->y; velocity->y = -velocity->y;
position->y += velocity->y; position->y += velocity->y;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment