From d53ab9cd3beae9101534b264fd83c7d535d50def Mon Sep 17 00:00:00 2001 From: Goulven Guinel Date: Sat, 10 Dec 2022 11:08:30 +0900 Subject: [PATCH] Remove Controller Disconnect event handler --- vSMR/SMRPlugin.cpp | 8 -------- vSMR/SMRPlugin.hpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/vSMR/SMRPlugin.cpp b/vSMR/SMRPlugin.cpp index c3b842a43..4779838b7 100644 --- a/vSMR/SMRPlugin.cpp +++ b/vSMR/SMRPlugin.cpp @@ -595,14 +595,6 @@ void CSMRPlugin::OnFunctionCall(int FunctionId, const char * sItemString, POINT } } -void CSMRPlugin::OnControllerDisconnect(CController Controller) { - Logger::info(string(__FUNCSIG__)); - if (Controller.GetFullName() == ControllerMyself().GetFullName() && HoppieConnected == true) { - HoppieConnected = false; - DisplayUserMessage("CPDLC", "Server", "Logged off!", true, true, false, true, false); - } -} - void CSMRPlugin::OnFlightPlanDisconnect(CFlightPlan FlightPlan) { Logger::info(string(__FUNCSIG__)); diff --git a/vSMR/SMRPlugin.hpp b/vSMR/SMRPlugin.hpp index 168dd4e22..be81798c9 100644 --- a/vSMR/SMRPlugin.hpp +++ b/vSMR/SMRPlugin.hpp @@ -40,10 +40,6 @@ class CSMRPlugin : virtual void OnGetTagItem(CFlightPlan FlightPlan, CRadarTarget RadarTarget, int ItemCode, int TagData, char sItemString[16], int * pColorCode, COLORREF * pRGB, double * pFontSize); - //---OnControllerDisconnect------------------------------------------ - - virtual void OnControllerDisconnect(CController Controller); - //---OnFlightPlanDisconnect------------------------------------------ virtual void OnFlightPlanDisconnect(CFlightPlan FlightPlan);