Various objects: Use "reader_get_layer" to parse the "z-pos" and "layer" options.
[supertux.git] / src / object / cloud_particle_system.cpp
index ace29ee..e1a7a5e 100644 (file)
@@ -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()