projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Various objects: Use "reader_get_layer" to parse the "z-pos" and "layer" options.
[supertux.git]
/
src
/
object
/
cloud_particle_system.cpp
diff --git
a/src/object/cloud_particle_system.cpp
b/src/object/cloud_particle_system.cpp
index
ace29ee
..
e1a7a5e
100644
(file)
--- a/
src/object/cloud_particle_system.cpp
+++ b/
src/object/cloud_particle_system.cpp
@@
-45,7
+45,7
@@
CloudParticleSystem::CloudParticleSystem() :
void
CloudParticleSystem::parse(const Reader& reader)
{
-
reader.get("z-pos", z_pos
);
+
z_pos = reader_get_layer (reader, /* default = */ LAYER_BACKGROUND1
);
}
CloudParticleSystem::~CloudParticleSystem()