Mercurial > sdl-ios-xcode
diff test/testsprite2.c @ 2834:feb6ccdb888f
minor bug
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 05 Dec 2008 07:01:12 +0000 |
parents | 6bacfecbf27e |
children | 9dde605c7540 |
line wrap: on
line diff
--- a/test/testsprite2.c Fri Dec 05 07:00:58 2008 +0000 +++ b/test/testsprite2.c Fri Dec 05 07:01:12 2008 +0000 @@ -129,7 +129,7 @@ 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; }