projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a few more opengles changes
[supertux.git]
/
src
/
object_factory.cpp
diff --git
a/src/object_factory.cpp
b/src/object_factory.cpp
index
5335140
..
fe89724
100644
(file)
--- a/
src/object_factory.cpp
+++ b/
src/object_factory.cpp
@@
-27,12
+27,10
@@
#include "object_factory.hpp"
#include "math/vector.hpp"
#include "object_factory.hpp"
#include "math/vector.hpp"
-Factories* object_factories = 0;
-
GameObject* create_object(const std::string& name, const lisp::Lisp& reader)
{
GameObject* create_object(const std::string& name, const lisp::Lisp& reader)
{
- Factor
ies::iterator i = object_factories->
find(name);
- if(i ==
object_factories->
end()) {
+ Factor
y::Factories::iterator i = Factory::get_factories().
find(name);
+ if(i ==
Factory::get_factories().
end()) {
std::stringstream msg;
msg << "No factory for object '" << name << "' found.";
throw std::runtime_error(msg.str());
std::stringstream msg;
msg << "No factory for object '" << name << "' found.";
throw std::runtime_error(msg.str());