translation update
[supertux.git] / src / worldmap / sprite_change.cpp
index 48c425a..ff1460f 100644 (file)
 #include "video/drawing_context.hpp"
 #include "worldmap/sprite_change.hpp"
 
-namespace WorldMapNS {
+namespace worldmap {
 
 SpriteChange::SpriteChange(const Reader& lisp) :
   pos(),
-  change_on_touch(false), 
+  change_on_touch(false),
   sprite(),
   stay_action(),
   stay_group(),
@@ -37,7 +37,7 @@ SpriteChange::SpriteChange(const Reader& lisp) :
 
   std::string spritefile = "";
   lisp.get("sprite", spritefile);
-  sprite = sprite_manager->create(spritefile);
+  sprite = SpriteManager::current()->create(spritefile);
 
   lisp.get("stay-action", stay_action);
   lisp.get("initial-stay-action", in_stay_action);
@@ -79,7 +79,7 @@ SpriteChange::clear_stay_action()
 
   // if we are in a stay_group, also clear all stay actions in this group
   if (stay_group != "") {
-    for (std::list<SpriteChange*>::iterator i = all_sprite_changes.begin(); i != all_sprite_changes.end(); i++) {
+    for (std::list<SpriteChange*>::iterator i = all_sprite_changes.begin(); i != all_sprite_changes.end(); ++i) {
       SpriteChange* sc = *i;
       if (sc->stay_group != stay_group) continue;
       sc->in_stay_action = false;