示例#1
0
void CMission::CloseMission (void)

//	CloseMission
//
//	Closes a mission

{
    //	Remove all subscriptions

    CSystem *pSystem = g_pUniverse->GetCurrentSystem();
    if (pSystem)
        RemoveAllEventSubscriptions(pSystem);

    //	Cancel all timer events

    g_pUniverse->CancelEvent(this);
}
示例#2
0
文件: CMission.cpp 项目: bmer/Mammoth
void CMission::CloseMission (void)

//	CloseMission
//
//	Closes a mission

	{
	//	Remove all subscriptions

	CSystem *pSystem = g_pUniverse->GetCurrentSystem();
	if (pSystem)
		RemoveAllEventSubscriptions(pSystem);

	//	Cancel all timer events

	g_pUniverse->CancelEvent(this);

	//	If this is a player mission then refresh another player mission

	if (m_fAcceptedByPlayer)
		g_pUniverse->RefreshCurrentMission();
	}