projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daa69a7
)
If speed-y isn't given, use speed
author
Ingo Ruhnke
<grumbel@gmx.de>
Sat, 28 Nov 2009 23:03:45 +0000
(23:03 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Sat, 28 Nov 2009 23:03:45 +0000
(23:03 +0000)
SVN-Revision: 6153
src/object/background.cpp
patch
|
blob
|
history
diff --git
a/src/object/background.cpp
b/src/object/background.cpp
index
f74b748
..
b403f3f
100644
(file)
--- a/
src/object/background.cpp
+++ b/
src/object/background.cpp
@@
-60,7
+60,11
@@
Background::Background(const Reader& reader) :
throw std::runtime_error("Must specify image and speed for background");
set_image(imagefile, speed);
- reader.get("speed-y", speed_y);
+ if (!reader.get("speed-y", speed_y))
+ {
+ speed_y = speed;
+ }
+
if (reader.get("image-top", imagefile_top)) {
image_top = Surface::create(imagefile_top);
}