[wpdev-commits] wolfpack items.cpp,1.341,1.342
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-08-29 22:45:22
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv28661
Modified Files:
items.cpp
Log Message:
Fixed a bug related to tooltips
Index: items.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/items.cpp,v
retrieving revision 1.341
retrieving revision 1.342
diff -C2 -d -r1.341 -r1.342
*** items.cpp 28 Aug 2003 20:56:16 -0000 1.341
--- items.cpp 29 Aug 2003 22:44:47 -0000 1.342
***************
*** 2364,2367 ****
--- 2364,2382 ----
void cItem::sendTooltip( cUOSocket* mSock )
{
+ // There is a list of statically overridden items in the client (@50A1C0 for 4.0.0o)
+ unsigned short id = this->id();
+
+ // Mostly Signs (not movable but still have tooltips shown)
+ if( ( id >= 0xba3 && id <= 0xc0e ) ||
+ ( id >= 0x1297 && id <= 0x129e ) ||
+ ( id >= 0x3e4a && id <= 0x3e55 ) ||
+ ( id >= 0xed4 && id <= 0xede ) ||
+ ( id >= 0x1165 && id <= 0x1184 )
+ )
+ {
+ cUObject::sendTooltip( mSock );
+ return;
+ }
+
// Don't send the tooltip if we're a supposed-to-be-static item
tile_st tile = TileCache::instance()->getTile( id_ );
|