19 lines
535 B
C
19 lines
535 B
C
/*
|
|
* ipclienc.h - interface from cpp to c funcs
|
|
* added 2000/02/07 Matt Mueller
|
|
*/
|
|
#include "ip_basec.h"
|
|
#include "ipx.h"
|
|
#include "network.h"
|
|
void ip_sendtoall(char *buf,int len){
|
|
int j;
|
|
for (j=0;j<MAX_PLAYERS;j++){
|
|
if (Netgame.players[j].connected && j!=Player_num){
|
|
ip_sendtoid(Netgame.players[j].node,buf,len);
|
|
}
|
|
}
|
|
}
|
|
int get_MAX_PLAYERS(void){return MAX_PLAYERS;}
|
|
int get_Netgame_player_connected(int pn){return Netgame.players[pn].connected;}
|
|
ubyte * get_Netgame_player_node(int pn){return Netgame.players[pn].node;}
|