minor bug
authorSam Lantinga <slouken@libsdl.org>
Fri, 05 Dec 2008 07:01:12 +0000
changeset 2834 feb6ccdb888f
parent 2833 c2e182a37f5f
child 2835 f38257b5d936
minor bug
test/testsprite2.c
--- 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;
         }