pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.49,1.50


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.49,1.50
Date: 4 Mar 2003 10:26:20 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv8319/editor

Modified Files:
        editor_event.cxx 
Log Message:
splitted PLF stuff from  PingusResource to reduce dependencies a bit


Index: editor_event.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor_event.cxx,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- editor_event.cxx    3 Mar 2003 20:32:18 -0000       1.49
+++ editor_event.cxx    4 Mar 2003 10:26:18 -0000       1.50
@@ -36,6 +36,7 @@
 #include "../my_gettext.hxx"
 #include "../pingus_error.hxx"
 #include "../pingus_resource.hxx"
+#include "../plf_res_mgr.hxx"
 #include "../system.hxx"
 #include "action_window.hxx"
 #include "editor.hxx"
@@ -512,7 +513,9 @@
   try 
     {
       std::string levelfile = editor->save_tmp_level();
-      ScreenManager::instance()->push_screen(new PingusGameSession 
(PingusResource::load_plf_raw(levelfile)), true);
+      // FIXME: Insert here something that checks if a level needs a reload
+      ScreenManager::instance()->push_screen
+        (new PingusGameSession (PLFResMgr::load_plf_from_filename(levelfile)), 
true);
     }
   catch(const PingusError& err) 
     {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]