[Super-tux-commit] supertux/src special.cpp,1.41,1.42
Brought to you by:
wkendrick
From: Ryan F. <sik...@us...> - 2004-05-12 01:16:44
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25151 Modified Files: special.cpp Log Message: - fixed rising specials Index: special.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/special.cpp,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- special.cpp 11 May 2004 23:09:33 -0000 1.41 +++ special.cpp 12 May 2004 01:16:33 -0000 1.42 @@ -248,12 +248,13 @@ Upgrade::draw() { SDL_Rect dest; + if (base.height < 32) { /* Rising up... */ - dest.x = (int)(base.x - scroll_x); - dest.y = (int)(base.y - scroll_y + 32 - base.height); + dest.x = (int)(base.x); + dest.y = (int)(base.y + 32 - base.height); dest.w = 32; dest.h = (int)base.height; |