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:
parent
1d504a665f
commit
2c05b7f747
3 changed files with 4 additions and 4 deletions
|
@ -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, );
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue