+
+void
+SpriteChange::clear_stay_action()
+{
+ in_stay_action = false;
+
+ // 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) {
+ SpriteChange* sc = *i;
+ if (sc->stay_group != stay_group) continue;
+ sc->in_stay_action = false;
+ }
+ }
+}
+
+std::list<SpriteChange*> SpriteChange::all_sprite_changes;
+
+}
+
+/* EOF */