pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src Entrance.cc,1.30,1.31 EntranceData.cc


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src Entrance.cc,1.30,1.31 EntranceData.cc,1.8,1.9 ExitData.cc,1.11,1.12
Date: 9 Jun 2002 13:29:28 -0000

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

Modified Files:
        Entrance.cc EntranceData.cc ExitData.cc 
Log Message:
- fixed the owner_id bug, it was caused by the constructor not initing the 
variables to there default value
- some more classes might be have throuble due to this issue

Index: Entrance.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/Entrance.cc,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- Entrance.cc 9 Jun 2002 11:18:50 -0000       1.30
+++ Entrance.cc 9 Jun 2002 13:29:26 -0000       1.31
@@ -57,6 +57,7 @@
   Direction d;
 
   Pingu* pingu = world->get_pingu_p()->create_pingu (pos, owner_id);
+
   switch (direction) 
     {
     case EntranceData::LEFT:

Index: EntranceData.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/EntranceData.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- EntranceData.cc     9 Jun 2002 13:03:11 -0000       1.8
+++ EntranceData.cc     9 Jun 2002 13:29:26 -0000       1.9
@@ -26,6 +26,8 @@
 
 EntranceData::EntranceData (xmlDocPtr doc, xmlNodePtr cur)
 {
+  clean ();
+
   cur = cur->children;  
   while (cur != NULL)
     {

Index: ExitData.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/ExitData.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ExitData.cc 9 Jun 2002 13:03:11 -0000       1.11
+++ ExitData.cc 9 Jun 2002 13:29:26 -0000       1.12
@@ -24,6 +24,8 @@
 
 ExitData::ExitData (xmlDocPtr doc, xmlNodePtr cur)
 {
+  clean ();
+
   char* pos_handling = (char*)xmlGetProp(cur, 
(xmlChar*)"use-old-pos-handling");
   if (pos_handling)
     {




reply via email to

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