test/testsprite2.c
changeset 2834 feb6ccdb888f
parent 2786 6bacfecbf27e
child 2884 9dde605c7540
     1.1 --- a/test/testsprite2.c	Fri Dec 05 07:00:58 2008 +0000
     1.2 +++ b/test/testsprite2.c	Fri Dec 05 07:01:12 2008 +0000
     1.3 @@ -129,7 +129,7 @@
     1.4              position->x += velocity->x;
     1.5          }
     1.6          position->y += velocity->y;
     1.7 -        if ((position->y < 0) || (position->y >= (window_h - sprite_w))) {
     1.8 +        if ((position->y < 0) || (position->y >= (window_h - sprite_h))) {
     1.9              velocity->y = -velocity->y;
    1.10              position->y += velocity->y;
    1.11          }