projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a7cf9
)
Modified draw_part() in sprite class to make use of scroll.
author
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 11 May 2004 23:12:00 +0000
(23:12 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 11 May 2004 23:12:00 +0000
(23:12 +0000)
SVN-Revision: 1116
src/sprite.cpp
patch
|
blob
|
history
diff --git
a/src/sprite.cpp
b/src/sprite.cpp
index
72ef1da
..
7d23c1d
100644
(file)
--- a/
src/sprite.cpp
+++ b/
src/sprite.cpp
@@
-89,7
+89,7
@@
Sprite::draw_part(float sx, float sy, float x, float y, float w, float h)
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