refactor(Minecraft.World): Implement LCEMP changes.
This commit is contained in:
@@ -2706,14 +2706,16 @@ int Player::getTexture()
|
||||
}
|
||||
}
|
||||
|
||||
int Player::hash_fnct(const shared_ptr<Player> k)
|
||||
{
|
||||
// TODO 4J Stu - Should we just be using the pointers and hashing them?
|
||||
#ifdef __PS3__
|
||||
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#else
|
||||
return (int)std::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#endif //__PS3__
|
||||
int Player::hash_fnct(const shared_ptr<Player> k)
|
||||
{
|
||||
// TODO 4J Stu - Should we just be using the pointers and hashing them?
|
||||
#ifdef __PS3__
|
||||
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#elif !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
return (int)std::hash<wstring>{}( k->name ); // 4J Stu - Names are completely unique?
|
||||
#else
|
||||
return (int)stdext::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Player::eq_test(const shared_ptr<Player> x, const shared_ptr<Player> y)
|
||||
|
||||
Reference in New Issue
Block a user