np_is_server/np_is_spectate - cleanups
This commit is contained in:
parent
6cc60a2d02
commit
4fd2fee2a7
|
@ -312,10 +312,14 @@ bool np_get_info(netplay_t *netplay)
|
|||
|
||||
bool np_is_server(netplay_t* netplay)
|
||||
{
|
||||
if (!netplay)
|
||||
return false;
|
||||
return netplay->is_server;
|
||||
}
|
||||
|
||||
bool np_is_spectate(netplay_t* netplay)
|
||||
{
|
||||
if (!netplay)
|
||||
return false;
|
||||
return netplay->spectate.enabled;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue