1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 07:19:41 +00:00

[Server] Rename InitiateEvent() into InitializeEvent() for consistency

This commit is contained in:
David Cernat 2017-07-07 08:12:48 +03:00
parent 1d504a665f
commit 2c05b7f747
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ void WorldFunctions::ReadLastEvent() noexcept
readEvent = mwmp::Networking::getPtr()->getLastEvent();
}
void WorldFunctions::InitiateEvent(unsigned short pid) noexcept
void WorldFunctions::InitializeEvent(unsigned short pid) noexcept
{
Player *player;
GET_PLAYER(pid, player, );

View file

@ -3,7 +3,7 @@
#define WORLDAPI \
{"ReadLastEvent", WorldFunctions::ReadLastEvent},\
{"InitiateEvent", WorldFunctions::InitiateEvent},\
{"InitializeEvent", WorldFunctions::InitializeEvent},\
\
{"GetObjectChangesSize", WorldFunctions::GetObjectChangesSize},\
{"GetEventAction", WorldFunctions::GetEventAction},\
@ -72,7 +72,7 @@ class WorldFunctions
public:
static void ReadLastEvent() noexcept;
static void InitiateEvent(unsigned short pid) noexcept;
static void InitializeEvent(unsigned short pid) noexcept;
static unsigned int GetObjectChangesSize() noexcept;
static unsigned char GetEventAction() noexcept;

View file

@ -35,7 +35,7 @@ void PacketPlayerFaction::Packet(RakNet::BitStream *bs, bool send)
RW(faction.rank, send);
if (player->factionChanges.action == FactionChanges::BOTH || player->factionChanges.action == FactionChanges::EXPULSION)
RW(faction.isExpelled, send);
RW(faction.isExpelled, send);
if (!send)
player->factionChanges.factions.push_back(faction);