[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.25,1.26 p
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.25,1.26 plfobj.cxx,1.6,1.7 |
Date: |
16 Aug 2002 15:14:02 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv23483/editor
Modified Files:
object_manager.cxx plfobj.cxx
Log Message:
moved exceptions out of line - reduces code size (memory usage) and compilation
time
Index: object_manager.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/object_manager.cxx,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- object_manager.cxx 16 Aug 2002 13:03:36 -0000 1.25
+++ object_manager.cxx 16 Aug 2002 15:14:00 -0000 1.26
@@ -189,7 +189,7 @@
xml.open(filename.c_str());
if (!xml)
- throw PingusError("ObjectManager:save_level_xml: Couldn't save level: " +
filename);
+ PingusError::raise("ObjectManager:save_level_xml: Couldn't save level: " +
filename);
xml << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n"
<< "<pingus-level>\n"
Index: plfobj.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/plfobj.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- plfobj.cxx 2 Jul 2002 13:36:07 -0000 1.6
+++ plfobj.cxx 16 Aug 2002 15:14:00 -0000 1.7
@@ -52,7 +52,7 @@
else
{
std::cout << "Entrance obj error!" << endl;
- throw PingusError("EntranceObj: Unknown entrance type: " + type);
+ PingusError::raise("EntranceObj: Unknown entrance type: " + type);
}
}
@@ -165,7 +165,7 @@
sprite = Sprite("Traps/teleporter", "traps");
sprite.set_align_center_bottom ();
} else {
- throw PingusError("'" + type + "': trap is not implemented in editor");
+ PingusError::raise("'" + type + "': trap is not implemented in editor");
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.25,1.26 plfobj.cxx,1.6,1.7,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/particles weather_generator.cxx,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.10,1.11 bmp_map.cxx,1.1,1.2 col_map.cxx,1.5,1.6 config.cxx,1.3,1.4 demo_player.cxx,1.2,1.3 demo_recorder.cxx,1.4,1.5 entrance_data.cxx,1.3,1.4 pingu_action_factory.cxx,1.4,1.5 pingus_error.cxx,1.2,1.3 pingus_error.hxx,1.4,1.5 plf_parser.cxx,1.2,1.3 plf_plf.cxx,1.4,1.5 plt_parser.cxx,1.3,1.4 plt_xml.cxx,1.2,1.3 psm_parser.cxx,1.3,1.4 res_descriptor.cxx,1.7,1.8 server.cxx,1.8,1.9 specs_reader.cxx,1.1,1.2 spot_map.cxx,1.5,1.6 theme_selector.cxx,1.2,1.3 trap_data.cxx,1.3,1.4 worldobj_data_factory.cxx,1.2,1.3 xml_plf.cxx,1.6,1.7
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/particles weather_generator.cxx,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.10,1.11 bmp_map.cxx,1.1,1.2 col_map.cxx,1.5,1.6 config.cxx,1.3,1.4 demo_player.cxx,1.2,1.3 demo_recorder.cxx,1.4,1.5 entrance_data.cxx,1.3,1.4 pingu_action_factory.cxx,1.4,1.5 pingus_error.cxx,1.2,1.3 pingus_error.hxx,1.4,1.5 plf_parser.cxx,1.2,1.3 plf_plf.cxx,1.4,1.5 plt_parser.cxx,1.3,1.4 plt_xml.cxx,1.2,1.3 psm_parser.cxx,1.3,1.4 res_descriptor.cxx,1.7,1.8 server.cxx,1.8,1.9 specs_reader.cxx,1.1,1.2 spot_map.cxx,1.5,1.6 theme_selector.cxx,1.2,1.3 trap_data.cxx,1.3,1.4 worldobj_data_factory.cxx,1.2,1.3 xml_plf.cxx,1.6,1.7
- Index(es):