/[enigma]/enigma/src/world.cc
ViewVC logotype

Diff of /enigma/src/world.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by dheck, Sun Feb 2 18:33:52 2003 UTC revision 1.10 by dheck, Wed Feb 5 20:14:28 2003 UTC
# Line 754  world::Load(const string &name) Line 754  world::Load(const string &name)
754      filename += name;      filename += name;
755      filename += ".lua";      filename += ".lua";
756    
757    
758        // Restart the Lua environment, so symbol definitions from
759        // different levels do not get in each other's way.
760        lua::Shutdown();
761        lua::Init();
762        lua::Dofile("init.lua");
763    
764    
765      if (lua::Dofile(filename) != 0) {      if (lua::Dofile(filename) != 0) {
766          fprintf(stderr, "Error while loading landscape '%s'\n",name.c_str());          fprintf(stderr, "Error while loading landscape '%s'\n",name.c_str());
767          clear_world();          clear_world();

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26