pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/particles weather_generator.cxx,1.2,1


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/particles weather_generator.cxx,1.2,1.3
Date: 16 Aug 2002 15:14:02 -0000

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

Modified Files:
        weather_generator.cxx 
Log Message:
moved exceptions out of line - reduces code size (memory usage) and compilation 
time


Index: weather_generator.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/particles/weather_generator.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- weather_generator.cxx       13 Jun 2002 14:25:13 -0000      1.2
+++ weather_generator.cxx       16 Aug 2002 15:14:00 -0000      1.3
@@ -31,8 +31,10 @@
     return new RainGenerator();
   else
     {
-      throw PingusError ("WeatherGenerator: Unknown type: " + data.type);
+      PingusError::raise ("WeatherGenerator: Unknown type: " + data.type);
     }
+    
+  return 0; // never reached
 }
 
 /* EOF */





reply via email to

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