projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7005fb6
)
- fixed rising specials
author
Ryan Flegel
<rflegel@gmail.com>
Wed, 12 May 2004 01:16:33 +0000
(
01:16
+0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Wed, 12 May 2004 01:16:33 +0000
(
01:16
+0000)
SVN-Revision: 1123
src/special.cpp
patch
|
blob
|
history
diff --git
a/src/special.cpp
b/src/special.cpp
index
9b04c05
..
a4da6d3
100644
(file)
--- a/
src/special.cpp
+++ b/
src/special.cpp
@@
-248,12
+248,13
@@
void
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;