blind commit, please test: use squirrel datatypes
[supertux.git] / src / object / powerup.cpp
index 09d4d58..4e14f93 100644 (file)
@@ -19,7 +19,9 @@
 
 #include <config.h>
 
+#include <stdexcept>
 #include <math.h>
+#include <stdexcept>
 #include "powerup.hpp"
 #include "resources.hpp"
 #include "player.hpp"
@@ -33,7 +35,8 @@ PowerUp::PowerUp(const lisp::Lisp& lisp)
 {
   lisp.get("x", bbox.p1.x);
   lisp.get("y", bbox.p1.y);
-  if (!lisp.get("sprite", sprite_name)) throw std::runtime_error("no sprite file set for powerup");
+  if (!lisp.get("sprite", sprite_name))
+    throw std::runtime_error("no sprite file set for powerup");
   lisp.get("script", script);
   no_physics = false;
   lisp.get("disable-physics", no_physics);