1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:15:32 +00:00

Remove old class methods and don't include class in ID_GAME_BASE_INFO

This commit is contained in:
David Cernat 2016-09-02 03:45:43 +03:00
parent 534ef527b9
commit 970e9aff2f
3 changed files with 0 additions and 28 deletions

View file

@ -80,30 +80,6 @@ const char *StatsFunctions::GetRace(unsigned short pid) noexcept
return player->Npc()->mRace.c_str();
}
void StatsFunctions::SetClass(unsigned short pid, const char *className) noexcept
{
Player *player;
GET_PLAYER(pid, player, );
if (player->Npc()->mClass == className)
return;
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Setting class for %s: %s -> %s",
player->Npc()->mName.c_str(),
player->Npc()->mClass.c_str(),
className);
player->Npc()->mClass = className;
}
const char *StatsFunctions::GetClass(unsigned short pid) noexcept
{
Player *player;
GET_PLAYER(pid, player, 0);
return player->Npc()->mClass.c_str();
}
void StatsFunctions::SetHead(unsigned short pid, const char *race) noexcept
{
Player *player;

View file

@ -12,9 +12,6 @@
{"GetRace", StatsFunctions::GetRace},\
{"SetRace", StatsFunctions::SetRace},\
\
{"SetClass", StatsFunctions::SetClass},\
{"GetClass", StatsFunctions::GetClass},\
\
{"GetHead", StatsFunctions::GetHead},\
{"SetHead", StatsFunctions::SetHead},\
\

View file

@ -19,7 +19,6 @@ void PacketBaseInfo::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send
RW(player->Npc()->mName, send);
RW(player->Npc()->mModel, send);
RW(player->Npc()->mRace, send);
RW(player->Npc()->mClass, send);
RW(player->Npc()->mHair, send);
RW(player->Npc()->mHead, send);