minor bug
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403295
This commit is contained in:
parent
b19daa445d
commit
d9bd99d552
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue