~ubuntu-branches/ubuntu/precise/pokerth/precise-proposed

« back to all changes in this revision

Viewing changes to src/net/common/netpacket.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov
  • Date: 2009-06-26 00:23:56 UTC
  • mfrom: (1.1.7 upstream) (5.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090626002356-p3nrzdhhqwk5gpf0
Tags: 0.7.1-1
* New upstream release.
* debian/control:
  + Build-Depend on unversioned boost packages again.
    Closes: #531119, #534086
  + Improve pokerth-server description, one does not need the package
    for one-table games.
  + Standards-Version: 3.8.2, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
18
 ***************************************************************************/
19
19
 
 
20
#include <boost/asio.hpp>
 
21
 
20
22
#include <net/netpacket.h>
21
23
#include <net/netexception.h>
22
24
#include <net/socket_msg.h>
3492
3494
        // Basic checking.
3493
3495
        if (numPlayers < MIN_NUMBER_OF_PLAYERS || numPlayers > MAX_NUMBER_OF_PLAYERS || numPlayers != inData.startData.numberOfPlayers)
3494
3496
        {
3495
 
                // This seems to occur too often.
3496
 
                // TODO needs fix.
3497
3497
                LOG_VERBOSE("Invalid number of players. Slots: " << numPlayers << ", Players: " << inData.startData.numberOfPlayers << ".");
3498
3498
                throw NetException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0);
3499
3499
        }