Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
minor bug
  • Loading branch information
slouken committed Dec 5, 2008
1 parent 2e4a1da commit 61ef0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testsprite2.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 61ef0f1

Please sign in to comment.