projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blind commit, please test: use squirrel datatypes
[supertux.git]
/
src
/
object
/
powerup.cpp
diff --git
a/src/object/powerup.cpp
b/src/object/powerup.cpp
index
09d4d58
..
4e14f93
100644
(file)
--- a/
src/object/powerup.cpp
+++ b/
src/object/powerup.cpp
@@
-19,7
+19,9
@@
#include <config.h>
#include <config.h>
+#include <stdexcept>
#include <math.h>
#include <math.h>
+#include <stdexcept>
#include "powerup.hpp"
#include "resources.hpp"
#include "player.hpp"
#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);
{
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);
lisp.get("script", script);
no_physics = false;
lisp.get("disable-physics", no_physics);