NAME
====
  vg_nw_setplayer() - only master: set number of players


SYNOPSIS
========
  int vg_nw_setplayer(int minplayer, int maxplayer)


DESCRIPTION
===========
  Before the master player starts the network-server with vg_nw_startserver(),
  he has to set the number of players with vg_nw_setplayer().

  minplayer is the minimum number of players, at least 1.

  maxplayer is the maximum number of players, at most NW_MAXCLIENT
  which is defined in vgagames2.h (currently 16 players).

  vg_nw_setplayer() returns the real maximum number of players, who can
  connect. This number is usually equal to maxplayer, but could be less
  if too many bytes were requested with vg_nw_setvar() and vg_nw_setcommon().

  The return value should be checked, whether at least the minimum number
  (minplayer) of players is returned.


RETURN VALUE
============
  It returns the maximum number of players, who can connect.


SEE ALSO
========
  Index
  Understanding network
  vg_nw_startserver()
  vg_nw_connect()
  vg_nw_waitforconnects()
  vg_nw_setvar()
  vg_nw_getvar()
  vg_nw_setcommon()
  vg_nw_getcommon()
  vg_nw_dumppacket()
  vg_nw_sendinit()
  vg_nw_recvinit()
  vg_nw_myplayer()
  vg_nw_maxplayer()
  vg_nw_virtualplayer()
  vg_nw_isalive()
  vg_nw_recvkeys()
  vg_nw_keypressed()
  vg_nw_mousepressed()
  vg_nw_mousex()
  vg_nw_mousey()
  vg_nw_senddata()
  vg_nw_sendcommon()
  vg_nw_setdead()
  vg_nw_dumpsprite()
  vg_nw_undumpsprite()
  vg_nw_close()