[Super-tux-commit] supertux/src sprite.cpp,1.8,1.9
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-11 23:12:09
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1623/src Modified Files: sprite.cpp Log Message: Modified draw_part() in sprite class to make use of scroll. Index: sprite.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/sprite.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- sprite.cpp 11 May 2004 22:12:42 -0000 1.8 +++ sprite.cpp 11 May 2004 23:12:00 -0000 1.9 @@ -89,7 +89,7 @@ unsigned int frame = get_current_frame(); if (frame < surfaces.size()) - surfaces[frame]->draw_part(sx, sy, x - x_hotspot, y - y_hotspot, w, h); + surfaces[frame]->draw_part(sx, sy, x - x_hotspot - scroll_x, y - y_hotspot - scroll_y , w, h); } void |