From ac5cc871def991741a9249fac70e19a3a1fd9974 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 6 Aug 2017 18:24:42 +0300 Subject: [PATCH] Rename the SpectateNone() function to Unspectate(). --- source/Entity/Player.cpp | 4 ++-- source/Entity/Player.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Entity/Player.cpp b/source/Entity/Player.cpp index 00b4de8c..a7456e9a 100644 --- a/source/Entity/Player.cpp +++ b/source/Entity/Player.cpp @@ -1373,7 +1373,7 @@ void CPlayer::SetSpectatorID(SQInteger id) const } // ------------------------------------------------------------------------------------------------ -void CPlayer::SpectateNone() const +void CPlayer::Unspectate() const { // Validate the managed identifier Validate(); @@ -2709,7 +2709,7 @@ void Register_CPlayer(HSQUIRRELVM vm) .Func(_SC("StripWeapons"), &CPlayer::StripWeapons) .Func(_SC("RestoreCamera"), &CPlayer::RestoreCamera) .Func(_SC("Spectating"), &CPlayer::GetSpectator) - .Func(_SC("SpectateNone"), &CPlayer::SpectateNone) + .Func(_SC("Unspectate"), &CPlayer::Unspectate) .Func(_SC("Spectate"), &CPlayer::SetSpectator) .Func(_SC("Redirect"), &CPlayer::Redirect) .Func(_SC("PlaySound"), &CPlayer::PlaySound) diff --git a/source/Entity/Player.hpp b/source/Entity/Player.hpp index c595ee3e..56a4e074 100644 --- a/source/Entity/Player.hpp +++ b/source/Entity/Player.hpp @@ -742,7 +742,7 @@ public: /* -------------------------------------------------------------------------------------------- * Set the managed player entity to spectate no one. */ - void SpectateNone() const; + void Unspectate() const; /* -------------------------------------------------------------------------------------------- * Redirect the managed player entity to the specified server.