r87 - trunk/src

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Feb 9 17:35:03 EST 2005


Author: jonas
Date: 2005-02-09 17:35:03 -0500 (Wed, 09 Feb 2005)
New Revision: 87

Modified:
   trunk/src/scenario.cpp
Log:
small stuff about map loading

Modified: trunk/src/scenario.cpp
===================================================================
--- trunk/src/scenario.cpp	2005-02-09 22:08:47 UTC (rev 86)
+++ trunk/src/scenario.cpp	2005-02-09 22:35:03 UTC (rev 87)
@@ -43,6 +43,8 @@
         pool=new ObjectsPool();
     } else if (!pool) pool=new ObjectsPool();
     if (background) delete background;
+    if (anim) delete anim;
+    anim=new AnimHandler();
     background=NULL;
     area=NULL;
     player=NULL;
@@ -51,7 +53,6 @@
 
 int Scenario::loadMap(string mapname) {
     reinitMap();
-    cout << "Loading Map data...\n";
     name=mapname;
     ifstream mapfile;
     string tmpline;
@@ -65,9 +66,9 @@
     
     mapfile.open(loadfile.c_str());
     if (mapfile) {
-        cout << "Loading map configuration file...\n";
+        cout << "Loading new map: " << loadfile << endl;
     } else {
-        cout << "Map loading failed: " << (config.datadir+name) << " not found!\n";
+        cout << "Map loading failed: " << loadfile << " not found!\n";
         return -2;
     }
 




More information about the lostpenguins-commits mailing list