projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't adjust aspect-ratio in non-fullscreen modes, removed a few unneeded headers
[supertux.git]
/
src
/
world.cpp
diff --git
a/src/world.cpp
b/src/world.cpp
index
9301adc
..
8fd4599
100644
(file)
--- a/
src/world.cpp
+++ b/
src/world.cpp
@@
-86,7
+86,7
@@
World::load(const std::string& filename)
basedir = FileSystem::dirname(filename);
lisp::Parser parser;
basedir = FileSystem::dirname(filename);
lisp::Parser parser;
-
std::auto_ptr<lisp::Lisp> root (parser.parse(filename)
);
+
const lisp::Lisp* root = parser.parse(filename
);
const lisp::Lisp* info = root->get_lisp("supertux-world");
if(info == NULL)
const lisp::Lisp* info = root->get_lisp("supertux-world");
if(info == NULL)
@@
-198,7
+198,7
@@
World::load_state()
try {
lisp::Parser parser;
try {
lisp::Parser parser;
-
std::auto_ptr<lisp::Lisp> root (parser.parse(savegame_filename)
);
+
const lisp::Lisp* root = parser.parse(savegame_filename
);
const lisp::Lisp* lisp = root->get_lisp("supertux-savegame");
if(lisp == NULL)
const lisp::Lisp* lisp = root->get_lisp("supertux-savegame");
if(lisp == NULL)