From 61ef0f12cdc87291e94455387462de9d62026015 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 5 Dec 2008 07:01:12 +0000 Subject: [PATCH] minor bug --- test/testsprite2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testsprite2.c b/test/testsprite2.c index cb3b48bc8..b663f316b 100644 --- a/test/testsprite2.c +++ b/test/testsprite2.c @@ -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; }