minor bug

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403295
This commit is contained in:
Sam Lantinga 2008-12-05 07:01:12 +00:00
parent b19daa445d
commit d9bd99d552

View file

@ -129,7 +129,7 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
position->x += velocity->x;
}
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;
position->y += velocity->y;
}