From c62a575a9e4ed183a16d39222536568dc544d91f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 25 Jan 2017 14:59:23 +0200 Subject: [PATCH] [Server] Change order of words in the names of script callbacks --- apps/openmw-mp/Networking.cpp | 16 ++++++++-------- apps/openmw-mp/Script/ScriptFunctions.hpp | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index e122a4b8a..c7af57942 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -161,7 +161,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) player->getCell()->getDescription().c_str()); myPacket->Send(player, true); //send to other clients - Script::Call(player->getId()); + Script::Call(player->getId()); } else { @@ -188,7 +188,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -201,7 +201,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -214,7 +214,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -226,7 +226,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } @@ -236,7 +236,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_INVENTORY\n"); myPacket->Read(player); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } @@ -246,7 +246,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_SPELLBOOK\n"); myPacket->Read(player); - Script::Call(player->getId(), player->spellbookChanges.action); + Script::Call(player->getId(), player->spellbookChanges.action); break; } @@ -256,7 +256,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_JOURNAL\n"); myPacket->Read(player); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 1b85a79db..2e726ecfd 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -106,15 +106,15 @@ public: {"OnPlayerDisconnect", Function()}, {"OnPlayerDeath", Function()}, {"OnPlayerResurrect", Function()}, - {"OnPlayerChangeCell", Function()}, + {"OnPlayerCellChange", Function()}, {"OnPlayerCellLoad", Function()}, - {"OnPlayerChangeAttributes", Function()}, - {"OnPlayerChangeSkills", Function()}, - {"OnPlayerChangeLevel", Function()}, - {"OnPlayerChangeEquipment", Function()}, - {"OnPlayerChangeInventory", Function()}, - {"OnPlayerChangeSpellbook", Function()}, - {"OnPlayerChangeJournal", Function()}, + {"OnPlayerAttributesChange", Function()}, + {"OnPlayerSkillsChange", Function()}, + {"OnPlayerLevelChange", Function()}, + {"OnPlayerEquipmentChange", Function()}, + {"OnPlayerInventoryChange", Function()}, + {"OnPlayerSpellbookChange", Function()}, + {"OnPlayerJournalChange", Function()}, {"OnObjectPlace", Function()}, {"OnObjectDelete", Function()}, {"OnPlayerSendMessage", Function()},