mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 04:46:11 +00:00
MORE
This commit is contained in:
@@ -32,9 +32,10 @@
|
||||
#include "Inventory.h"
|
||||
#include "Player.h"
|
||||
#include "ParticleTypes.h"
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include "../Minecraft.Client/Textures.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include "../Minecraft.Client/LocalPlayer.h"
|
||||
#include "../Minecraft.Client/HumanoidModel.h"
|
||||
#include "SoundTypes.h"
|
||||
@@ -2555,14 +2556,14 @@ int Player::getTexture()
|
||||
}
|
||||
}
|
||||
|
||||
int Player::hash_fnct(const shared_ptr<Player> k)
|
||||
int Player::hash_fnct(const std::shared_ptr<Player> k)
|
||||
{
|
||||
// TODO 4J Stu - Should we just be using the pointers and hashing them?
|
||||
// Hashing the player's name based on platform
|
||||
#ifdef __PS3__
|
||||
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
return (int)boost::hash_value(k->name);
|
||||
#else
|
||||
return (int)std::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#endif //__PS3__
|
||||
return (int)std::hash<std::wstring>()(k->name);
|
||||
#endif // __PS3__
|
||||
}
|
||||
|
||||
bool Player::eq_test(const shared_ptr<Player> x, const shared_ptr<Player> y)
|
||||
|
||||
Reference in New Issue
Block a user