⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpcomms.cpp

📁 空战游戏flacon源码
💻 CPP
字号:
/*

UI Comms Driver stuff (ALL of it which is NOT part of VU)


*/

#include <windows.h>
#include "resource.h"
#include <tchar.h>
#include "f4vu.h"
//#include "stdhdr.h"
#include "MsgInc\SendDogfightInfo.h"
#include "falcsess.h"
#include "mesg.h"
#include "falcmesg.h"
//#include "simdrive.h"
#include "uicomms.h"
#include "Find.h"
#include "Flight.h"

FalconSessionEntity *UIComms::FindCampaignPlayer(VU_ID flightID, uchar planeid)
	{
	Flight flight = (Flight) vuDatabase->Find(flightID);

	if(flight)
		{
		VuSessionsIterator sessionWalker(FalconLocalGame);
		FalconSessionEntity *curSession;

		curSession = (FalconSessionEntity*)sessionWalker.GetFirst();
		while (curSession)
			{
			if(curSession->GetPlayerFlightID() == flightID && curSession->GetAircraftNum() == planeid && curSession->GetPilotSlot() < 255)
				return (curSession);
			curSession = (FalconSessionEntity*)sessionWalker.GetNext();
			}
//		// Clear out any slot which we thought we had
//		if(planeid != 255)
//			flight->player_slots[planeid] = 255;
		}
		return(NULL);
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -