pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/worldobjs conveyor_belt.cxx,1.1,1.2 i


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs conveyor_belt.cxx,1.1,1.2 ice_block.cxx,1.1,1.2
Date: 19 Jun 2002 15:19:29 -0000

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

Modified Files:
        conveyor_belt.cxx ice_block.cxx 
Log Message:
- Initialized some unitialized members
- moved some initializations from body to initlist

This fixes the bug that the level end is not recognized and maybe some bugs
in the actions too


Index: conveyor_belt.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/conveyor_belt.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- conveyor_belt.cxx   12 Jun 2002 19:03:10 -0000      1.1
+++ conveyor_belt.cxx   19 Jun 2002 15:19:26 -0000      1.2
@@ -28,10 +28,8 @@
 #include "../pingu.hxx"
 #include "../boost/smart_ptr.hpp"
 
-ConveyorBeltData::ConveyorBeltData ()
+ConveyorBeltData::ConveyorBeltData () : width(5), speed(2)
 {
-  width = 5;
-  speed = 2;
 }
 
 /** Writte the content of this object formated as xml to the given

Index: ice_block.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/ice_block.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ice_block.cxx       12 Jun 2002 19:03:10 -0000      1.1
+++ ice_block.cxx       19 Jun 2002 15:19:26 -0000      1.2
@@ -29,9 +29,8 @@
 #include "../pingu.hxx"
 #include "../boost/smart_ptr.hpp"
 
-IceBlockData::IceBlockData ()
+IceBlockData::IceBlockData () : width(1)
 {
-  width = 1;
 }
 
 void




reply via email to

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