示例#1
0
文件: host.c 项目: ptitSeb/xash3d
qboolean Host_IsLocalGame( void )
{
	if( host.type != HOST_DEDICATED )
	if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 )
		return true;
	return false;
}
示例#2
0
文件: cl_main.c 项目: Reedych/xash3d
//======================================================================
qboolean CL_IsInGame( void )
{
	if( Host_IsDedicated() ) return true;	// always active for dedicated servers
	if( CL_GetMaxClients() > 1 ) return true;	// always active for multiplayer
	return ( cls.key_dest == key_game );		// active if not menu or console
}
示例#3
0
//======================================================================
qboolean CL_IsInGame( void )
{
	if( host.type == HOST_DEDICATED ) return true;	// always active for dedicated servers
	if( CL_GetMaxClients() > 1 ) return true;	// always active for multiplayer
	return ( cls.key_dest == key_game );		// active if not menu or console
}
示例#4
0
文件: host.c 项目: emileb/xash3d
qboolean Host_IsLocalGame( void )
{
	if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 )
		return true;
	return false;
}