[Top][All Lists]
[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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src Entrance.cc,1.30,1.31 EntranceData.cc,1.8,1.9 ExitData.cc,1.11,1.12,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs ConveyorBelt.cc,1.33,1.34 ConveyorBelt.hh,1.20,1.21 IceBlock.cc,1.27,1.28 IceBlock.hh,1.21,1.22 InfoBox.cc,1.6,1.7 InfoBox.hh,1.5,1.6 SwitchDoor.cc,1.29,1.30 SwitchDoor.hh,1.22,1.23 Teleporter.cc,1.36,1.37 Teleporter.hh,1.27,1.28
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor WeatherObj.cc,1.13,1.14
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs ConveyorBelt.cc,1.33,1.34 ConveyorBelt.hh,1.20,1.21 IceBlock.cc,1.27,1.28 IceBlock.hh,1.21,1.22 InfoBox.cc,1.6,1.7 InfoBox.hh,1.5,1.6 SwitchDoor.cc,1.29,1.30 SwitchDoor.hh,1.22,1.23 Teleporter.cc,1.36,1.37 Teleporter.hh,1.27,1.28
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor WeatherObj.cc,1.13,1.14
- Index(es):