[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/NetPanzer Classes/UnitOpcodes.hpp...
From: |
Matthias Braun |
Subject: |
[netPanzer-CVS] netpanzer/src/NetPanzer Classes/UnitOpcodes.hpp... |
Date: |
Tue, 02 Dec 2003 06:49:11 -0500 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Matthias Braun <address@hidden> 03/12/02 06:49:11
Modified files:
src/NetPanzer/Classes: UnitOpcodes.hpp
src/NetPanzer/Interfaces: UnitInterface.cpp
Log message:
fix more valgrind warnings
Patches:
Index: netpanzer/src/NetPanzer/Classes/UnitOpcodes.hpp
diff -u netpanzer/src/NetPanzer/Classes/UnitOpcodes.hpp:1.7
netpanzer/src/NetPanzer/Classes/UnitOpcodes.hpp:1.8
--- netpanzer/src/NetPanzer/Classes/UnitOpcodes.hpp:1.7 Mon Dec 1 15:57:59 2003
+++ netpanzer/src/NetPanzer/Classes/UnitOpcodes.hpp Tue Dec 2 06:49:10 2003
@@ -183,6 +183,9 @@
{
flags = 0;
opcode = _UNIT_OPCODE_UPDATE_STATE;
+
+ for(int i=0; i<5; i++)
+ pad[i] = 0;
}
} __attribute__((packed));
@@ -199,6 +202,9 @@
{
flags = 0;
opcode = _UNIT_OPCODE_DESTRUCT;
+
+ for(int i=0; i<7; i++)
+ pad[i] = 0;
}
} __attribute__((packed));
Index: netpanzer/src/NetPanzer/Interfaces/UnitInterface.cpp
diff -u netpanzer/src/NetPanzer/Interfaces/UnitInterface.cpp:1.15
netpanzer/src/NetPanzer/Interfaces/UnitInterface.cpp:1.16
--- netpanzer/src/NetPanzer/Interfaces/UnitInterface.cpp:1.15 Mon Dec 1
15:58:00 2003
+++ netpanzer/src/NetPanzer/Interfaces/UnitInterface.cpp Tue Dec 2
06:49:11 2003
@@ -178,7 +178,7 @@
// ******************************************************************
-void UnitInterface::updateUnitStatus( void )
+void UnitInterface::updateUnitStatus()
{
UnitBase *unit;
UnitPointer *iterator;
@@ -195,7 +195,8 @@
//SFX
sound->playAmbientSound("expl",
- WorldViewInterface::getCameraDistance(
unit->unit_state.location ) );
+ WorldViewInterface::getCameraDistance(
+ unit->unit_state.location ) );
deleteUnit( unit );
} else {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [netPanzer-CVS] netpanzer/src/NetPanzer Classes/UnitOpcodes.hpp...,
Matthias Braun <=