Player-is-SAO WIP

This commit is contained in:
Perttu Ahola
2011-12-01 18:23:58 +02:00
parent 9dcfa882b1
commit ee0d3bacbc
16 changed files with 1007 additions and 602 deletions

View File

@@ -1588,7 +1588,9 @@ class ObjectRef
return NULL;
if(obj->getType() != ACTIVEOBJECT_TYPE_PLAYER)
return NULL;
return static_cast<ServerRemotePlayer*>(obj);
PlayerSAO *player_sao = static_cast<PlayerSAO*>(obj);
return player_sao->getPlayer();
//return static_cast<ServerRemotePlayer*>(obj);
}
// Exported functions