Skip to content

Commit

Permalink
Remove Controller Disconnect event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven04 committed Dec 10, 2022
1 parent 5539ea9 commit d53ab9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions vSMR/SMRPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__));
Expand Down
4 changes: 0 additions & 4 deletions vSMR/SMRPlugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d53ab9c

Please sign in to comment.