Changeset d58e3c3 in network-game for server


Ignore:
Timestamp:
Feb 2, 2015, 1:01:44 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
35d702d
Parents:
6ba31d2
Message:

When a clients fails to create a game, send a CREATE_GAME_FAILURE message instead of a JOIN_GAME_FAILURE message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r6ba31d2 rd58e3c3  
    641641         if (mapGames.find(gameName) != mapGames.end()) {
    642642            cout << "Error: Game already exists" << endl;
    643             serverMsg.type = MSG_TYPE_JOIN_GAME_FAILURE;
     643            serverMsg.type = MSG_TYPE_CREATE_GAME_FAILURE;
    644644         }else {
    645645            Game* g = new Game(gameName, "../data/map.txt", &msgProcessor);
Note: See TracChangeset for help on using the changeset viewer.