From: <wel...@us...> - 2009-11-24 13:06:00
|
Revision: 4785 http://planeshift.svn.sourceforge.net/planeshift/?rev=4785&view=rev Author: weltall2 Date: 2009-11-24 13:05:53 +0000 (Tue, 24 Nov 2009) Log Message: ----------- don't save anything else than players position on setlocationinworld. blocks mounts from being saved around, maybe in a guildhouse Modified Paths: -------------- trunk/src/server/bulkobjects/pscharacter.cpp Modified: trunk/src/server/bulkobjects/pscharacter.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharacter.cpp 2009-11-24 12:13:51 UTC (rev 4784) +++ trunk/src/server/bulkobjects/pscharacter.cpp 2009-11-24 13:05:53 UTC (rev 4785) @@ -2006,7 +2006,7 @@ if (oldInstance != instance || (oldsector && oldsector != sectorinfo)) { - if ( dynamic_cast<gemNPC*>(actor) == NULL ) // NOT an NPC so it's ok to save location info + if ( GetCharType() == PSCHARACTER_TYPE_PLAYER ) // NOT an NPC so it's ok to save location info SaveLocationInWorld(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |