From: <ke...@us...> - 2007-11-24 11:16:46
|
Revision: 307 http://planeshift.svn.sourceforge.net/planeshift/?rev=307&view=rev Author: kemedes Date: 2007-11-24 03:16:04 -0800 (Sat, 24 Nov 2007) Log Message: ----------- - Added info of collision detection to /info. - Now broadcasting new item once CD is activated for it. Modified Paths: -------------- trunk/src/server/adminmanager.cpp Modified: trunk/src/server/adminmanager.cpp =================================================================== --- trunk/src/server/adminmanager.cpp 2007-11-24 02:32:45 UTC (rev 306) +++ trunk/src/server/adminmanager.cpp 2007-11-24 11:16:04 UTC (rev 307) @@ -1408,6 +1408,8 @@ info += " 'masterkey'"; if ( flags & PSITEM_FLAG_TRANSIENT ) info += " 'transient'"; + if ( flags & PSITEM_FLAG_USE_CD) + info += " 'collide'"; } psserver->SendSystemInfo(client->GetClientNum(),info); @@ -5681,7 +5683,7 @@ item->SetIsCD(onoff); psserver->SendSystemInfo(me->clientnum, "%s is now %s", item->GetName(), onoff ? "using collision detection" : "not using collision detection"); - item->GetGemObject()->Send(me->clientnum, false, false); + item->GetGemObject()->Broadcast(me->clientnum, false); } // TODO: Add more flags else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |