From 73ffe69393452746d543b01e386d3f4711fbc325 Mon Sep 17 00:00:00 2001 From: ksenonadv Date: Fri, 8 Mar 2024 12:53:38 +0200 Subject: [PATCH] pass restarting param. remove unused peer disconnect reasons --- SDK/include/network.hpp | 4 ---- Server/Components/Pawn/Manager/Manager.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/SDK/include/network.hpp b/SDK/include/network.hpp index 37eba30f0..42583cee5 100644 --- a/SDK/include/network.hpp +++ b/SDK/include/network.hpp @@ -29,10 +29,6 @@ enum PeerDisconnectReason PeerDisconnectReason_Timeout, PeerDisconnectReason_Quit, PeerDisconnectReason_Kicked, - // Never used by us, reserved for some existing libraries. - _PeerDisconnectReason_Custom, - // 4 to match fixes.inc, which wasn't 3 because some other libraries already used it. - PeerDisconnectReason_ModeEnd }; enum OrderingChannel diff --git a/Server/Components/Pawn/Manager/Manager.cpp b/Server/Components/Pawn/Manager/Manager.cpp index 647f6570f..177b9fc78 100644 --- a/Server/Components/Pawn/Manager/Manager.cpp +++ b/Server/Components/Pawn/Manager/Manager.cpp @@ -595,7 +595,7 @@ bool PawnManager::Load(std::string const& name, bool isEntryScript, bool restart scripts_.push_back(ptr); amxToScript_.emplace(script.GetAMX(), ptr); } - openAMX(script, isEntryScript); + openAMX(script, isEntryScript, restarting); return true; }