Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23545/network
Modified Files:
uosocket.cpp uosocket.h uotxpackets.h
Log Message:
Fixes
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.431
retrieving revision 1.432
diff -C2 -d -r1.431 -r1.432
*** uosocket.cpp 17 Oct 2004 01:20:20 -0000 1.431
--- uosocket.cpp 18 Oct 2004 12:09:52 -0000 1.432
***************
*** 2162,2166 ****
}
! void cUOSocket::attachTarget( cTargetRequest* request, Q_UINT16 multiid )
{
if ( multiid < 0x4000 )
--- 2162,2166 ----
}
! void cUOSocket::attachTarget( cTargetRequest* request, Q_UINT16 multiid, unsigned short xoffset, unsigned short yoffset, unsigned short zoffset )
{
if ( multiid < 0x4000 )
***************
*** 2176,2179 ****
--- 2176,2182 ----
cUOTxPlace target;
+ target.setXOffset(xoffset);
+ target.setYOffset(yoffset);
+ target.setZOffset(zoffset);
target.setTargSerial( 1 );
target.setModelID( multiid - 0x4000 );
Index: uotxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.h,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** uotxpackets.h 25 Sep 2004 22:57:09 -0000 1.115
--- uotxpackets.h 18 Oct 2004 12:09:53 -0000 1.116
***************
*** 1362,1365 ****
--- 1362,1374 ----
setShort( 18, data );
}
+ void setXOffset( unsigned short data ) {
+ setShort(20, data);
+ }
+ void setYOffset( unsigned short data ) {
+ setShort(22, data);
+ }
+ void setZOffset( unsigned short data ) {
+ setShort(24, data);
+ }
};
Index: uosocket.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.h,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -d -r1.126 -r1.127
*** uosocket.h 24 Sep 2004 04:47:39 -0000 1.126
--- uosocket.h 18 Oct 2004 12:09:53 -0000 1.127
***************
*** 269,273 ****
void soundEffect( Q_UINT16 soundId, cUObject* source = NULL );
void attachTarget( cTargetRequest* request );
! void attachTarget( cTargetRequest* request, Q_UINT16 multiid );
void attachTarget( cTargetRequest* request, std::vector<stTargetItem>& items, Q_INT16 xOffset = 0, Q_INT16 yOffset = 0, Q_INT16 zOffset = 0 );
void cancelTarget();
--- 269,273 ----
void soundEffect( Q_UINT16 soundId, cUObject* source = NULL );
void attachTarget( cTargetRequest* request );
! void attachTarget( cTargetRequest* request, Q_UINT16 multiid, unsigned short xoffset, unsigned short yoffset, unsigned short zoffset );
void attachTarget( cTargetRequest* request, std::vector<stTargetItem>& items, Q_INT16 xOffset = 0, Q_INT16 yOffset = 0, Q_INT16 zOffset = 0 );
void cancelTarget();
|