changeset 2834:feb6ccdb888f

minor bug
author Sam Lantinga <slouken@libsdl.org>
date Fri, 05 Dec 2008 07:01:12 +0000
parents c2e182a37f5f
children f38257b5d936
files test/testsprite2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
         }