[wpdev-commits] wolfpack/network uosocket.cpp,1.434,1.435
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-30 11:04:53
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6840/network Modified Files: uosocket.cpp Log Message: Fixed shop restock. Index: uosocket.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v retrieving revision 1.434 retrieving revision 1.435 diff -C2 -d -r1.434 -r1.435 *** uosocket.cpp 29 Oct 2004 23:44:05 -0000 1.434 --- uosocket.cpp 30 Oct 2004 11:04:43 -0000 1.435 *************** *** 2647,2659 **** bool restockNow = false; ! if ( pItem->layer() == cBaseChar::BuyRestockContainer ) ! { if ( pItem->hasTag( "last_restock_time" ) ) { ! if ( uint( pItem->getTag( "last_restock_time" ).toInt() ) + Config::instance()->shopRestock() * 60 * MY_CLOCKS_PER_SEC < Server::instance()->time() ) restockNow = true; ! } ! else pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); } --- 2647,2660 ---- bool restockNow = false; ! if (pItem->layer() == cBaseChar::BuyRestockContainer) { if ( pItem->hasTag( "last_restock_time" ) ) { ! if ( uint( pItem->getTag( "last_restock_time" ).toInt() ) + Config::instance()->shopRestock() * 60 * MY_CLOCKS_PER_SEC < Server::instance()->time() ) { restockNow = true; ! pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); ! } ! } else { pItem->setTag( "last_restock_time", cVariant( int( Server::instance()->time() ) ) ); + } } |