Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14700/network
Modified Files:
uotxpackets.cpp
Log Message:
Exchanged runningSteps property with a running boolean property.
Index: uotxpackets.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uotxpackets.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** uotxpackets.cpp 13 Aug 2004 08:55:27 -0000 1.101
--- uotxpackets.cpp 31 Aug 2004 15:18:25 -0000 1.102
***************
*** 168,172 ****
setSerial( pChar->serial() );
! setDirection( pChar->direction() );
setX( pChar->pos().x );
setY( pChar->pos().y );
--- 168,172 ----
setSerial( pChar->serial() );
! setDirection( pChar->running() ? (pChar->direction() | 0x80) : pChar->direction() );
setX( pChar->pos().x );
setY( pChar->pos().y );
***************
*** 247,251 ****
{
setCoord( pChar->pos() );
! setDirection( pChar->direction() );
}
--- 247,251 ----
{
setCoord( pChar->pos() );
! setDirection( pChar->running() ? (pChar->direction() | 0x80) : pChar->direction() );
}
***************
*** 278,282 ****
// If he's runningSteps we need to take that into account here
// ->runningSteps() is greater than zero in that case
! setDirection( pChar->runningSteps() ? pChar->direction() | 0x80 : pChar->direction() );
setFlag( 0 );
--- 278,282 ----
// If he's runningSteps we need to take that into account here
// ->runningSteps() is greater than zero in that case
! setDirection( pChar->running() ? (pChar->direction() | 0x80) : pChar->direction() );
setFlag( 0 );
***************
*** 342,346 ****
setY( pChar->pos().y );
setZ( pChar->pos().z );
! setDirection( pChar->direction() );
setFlag( 0 );
--- 342,346 ----
setY( pChar->pos().y );
setZ( pChar->pos().z );
! setDirection( pChar->running() ? (pChar->direction() | 0x80) : pChar->direction() );
setFlag( 0 );
***************
*** 452,456 ****
setY( pChar->pos().y );
setZ( pChar->pos().z );
! setDirection( pChar->direction() );
//void setFlags( unsigned char data ) { rawPacket[ 10 ] = data; } // // 10 = 0=normal, 4=poison, 9 = invul,0x40=attack, 0x80=hidden CHARMODE_WAR
}
--- 452,456 ----
setY( pChar->pos().y );
setZ( pChar->pos().z );
! setDirection( pChar->running() ? (pChar->direction() | 0x80) : pChar->direction() );
//void setFlags( unsigned char data ) { rawPacket[ 10 ] = data; } // // 10 = 0=normal, 4=poison, 9 = invul,0x40=attack, 0x80=hidden CHARMODE_WAR
}
|