pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src debug_stream.cxx,1.6,1.7 spot_map.cxx


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src debug_stream.cxx,1.6,1.7 spot_map.cxx,1.10,1.11
Date: 5 Sep 2002 16:47:49 -0000

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

Modified Files:
        debug_stream.cxx spot_map.cxx 
Log Message:
- fixed flushing bug for console
- removed a warning


Index: debug_stream.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/debug_stream.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- debug_stream.cxx    23 Aug 2002 15:49:48 -0000      1.6
+++ debug_stream.cxx    5 Sep 2002 16:47:46 -0000       1.7
@@ -69,7 +69,7 @@
       for (std::vector<std::ostream*>::iterator i = out_streams.begin ();
            i != out_streams.end (); ++i)
        {
-         *(*i) << line;
+         *(*i) << line << std::flush;
        }
     }
   else

Index: spot_map.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/spot_map.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- spot_map.cxx        4 Sep 2002 19:40:19 -0000       1.10
+++ spot_map.cxx        5 Sep 2002 16:47:46 -0000       1.11
@@ -257,8 +257,8 @@
   // FIXME: delete the next four lines and replace them with gc.get_clip_rect()
   int w = CL_Display::get_width ();
   int h = CL_Display::get_height ();
-  int of_x = gc.get_x_offset () + (gc.get_width ()/2); 
-  int of_y = gc.get_y_offset () + (gc.get_height ()/2);
+  int of_x = static_cast<int>(gc.get_x_offset () + (gc.get_width  ()/2));
+  int of_y = static_cast<int>(gc.get_y_offset () + (gc.get_height ()/2));
 
   if (draw_collision_map)
     {





reply via email to

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