From: <wel...@us...> - 2009-12-23 11:29:27
|
Revision: 5035 http://planeshift.svn.sourceforge.net/planeshift/?rev=5035&view=rev Author: weltall2 Date: 2009-12-23 11:29:18 +0000 (Wed, 23 Dec 2009) Log Message: ----------- show has quit only if the client has been ready Modified Paths: -------------- trunk/src/server/entitymanager.cpp Modified: trunk/src/server/entitymanager.cpp =================================================================== --- trunk/src/server/entitymanager.cpp 2009-12-22 23:57:38 UTC (rev 5034) +++ trunk/src/server/entitymanager.cpp 2009-12-23 11:29:18 UTC (rev 5035) @@ -617,12 +617,17 @@ // take the actor off his mount if he got one if(actor->GetMount()) RemoveRideRelation(actor); + + //As we show the logged in status only when the client gets ready we check if it + //was ready before doing this + if(client->IsReady()) + { + // Check for buddy list members + usermanager->NotifyBuddies(client, UserManager::LOGGED_OFF); - // Check for buddy list members - usermanager->NotifyBuddies(client, UserManager::LOGGED_OFF); - - // Check for Guild members to notify - usermanager->NotifyGuildBuddies(client, UserManager::LOGGED_OFF); + // Check for Guild members to notify + usermanager->NotifyGuildBuddies(client, UserManager::LOGGED_OFF); + } // Any objects wanting to know when the actor is 'gone' are callback'd here. actor->Disconnect(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |