From: <ma...@us...> - 2012-12-19 17:04:29
|
Revision: 8510 http://planeshift.svn.sourceforge.net/planeshift/?rev=8510&view=rev Author: magodra Date: 2012-12-19 17:04:23 +0000 (Wed, 19 Dec 2012) Log Message: ----------- - Use named constant instead of -1 to increase readability. Modified Paths: -------------- trunk/src/server/entitymanager.cpp Modified: trunk/src/server/entitymanager.cpp =================================================================== --- trunk/src/server/entitymanager.cpp 2012-12-19 00:27:09 UTC (rev 8509) +++ trunk/src/server/entitymanager.cpp 2012-12-19 17:04:23 UTC (rev 8510) @@ -987,9 +987,9 @@ // First send the actor to the client actor->Send( me->clientnum, true, false ); - // Then send stuff like HP and mana to player, flags=-1 force a update of all stats + // Then send stuff like HP and mana to player psCharacter * chardata = client->GetCharacterData(); - chardata->SendStatDRMessage(me->clientnum, actor->GetEID(), -1); + chardata->SendStatDRMessage(me->clientnum, actor->GetEID(), DIRTY_VITAL_ALL); //Store info about the character login chardata->SetLastLoginTime(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |