projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Rocks being flagged as on the ground while they are carried
[supertux.git]
/
src
/
object_factory.cpp
diff --git
a/src/object_factory.cpp
b/src/object_factory.cpp
index
afae27f
..
5335140
100644
(file)
--- a/
src/object_factory.cpp
+++ b/
src/object_factory.cpp
@@
-25,6
+25,7
@@
#include "lisp/lisp.hpp"
#include "lisp/parser.hpp"
#include "object_factory.hpp"
#include "lisp/lisp.hpp"
#include "lisp/parser.hpp"
#include "object_factory.hpp"
+#include "math/vector.hpp"
Factories* object_factories = 0;
Factories* object_factories = 0;
@@
-46,8
+47,10
@@
GameObject* create_object(const std::string& name, const Vector& pos)
lisptext << "(" << name
<< " (x " << pos.x << ")"
<< " (y " << pos.y << "))";
lisptext << "(" << name
<< " (x " << pos.x << ")"
<< " (y " << pos.y << "))";
-
+
lisp::Parser parser;
lisp::Parser parser;
- std::auto_ptr<lisp::Lisp> lisp (parser.parse(lisptext));
- return create_object(name, *lisp);
+ const lisp::Lisp* lisp = parser.parse(lisptext, "create_object");
+ GameObject* object = create_object(name, *lisp);
+
+ return object;
}
}