Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12447/network
Modified Files:
uorxpackets.h uotxpackets.h
Log Message:
Should fix some bugs related to loading items from inside containers introduced by the change in INVALID_SERIAL
Index: uorxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uorxpackets.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** uorxpackets.h 1 Jul 2004 20:07:07 -0000 1.63
--- uorxpackets.h 2 Jul 2004 06:01:21 -0000 1.64
***************
*** 1209,1212 ****
--- 1209,1213 ----
{
}
+
uint serial() const
{
***************
*** 1228,1241 ****
// 0x98 AllNames
! class cUORxAllNames : public cUOPacket {
public:
! cUORxAllNames(const QByteArray &data) : cUOPacket( data ) {
}
! unsigned int serial() {
return getInt(3);
}
! const QString &name() {
return getAsciiString(7);
}
--- 1229,1246 ----
// 0x98 AllNames
! class cUORxAllNames : public cUOPacket
! {
public:
! cUORxAllNames(const QByteArray &data) : cUOPacket( data )
! {
}
! unsigned int serial()
! {
return getInt(3);
}
! const QString name()
! {
return getAsciiString(7);
}
Index: uotxpackets.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.h,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -d -r1.109 -r1.110
*** uotxpackets.h 1 Jul 2004 20:07:08 -0000 1.109
--- uotxpackets.h 2 Jul 2004 06:01:31 -0000 1.110
***************
*** 2365,2369 ****
setShort( 10, 0 );
setInt( 12, 0xFF );
! ( *this )[16] = 0xFF;
}
void setSerial( unsigned int data )
--- 2365,2369 ----
setShort( 10, 0 );
setInt( 12, 0xFF );
! ( *this )[16] = static_cast<uchar>(0xFF);
}
void setSerial( unsigned int data )
|