Changeset 8aed9c0 in network-game for client/Client


Ignore:
Timestamp:
Dec 28, 2013, 2:21:46 PM (11 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
bcfd99a
Parents:
360c0f1
Message:

Client compiles under linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r360c0f1 r8aed9c0  
    2323#include <map>
    2424#include <vector>
     25#include <stdexcept>
    2526
    2627#include <allegro5/allegro.h>
     
    880881               cout << "Received a JOIN_GAME_SUCCESS message" << endl;
    881882
    882                string gameName(msg.buffer);         
    883                game = new Game(gameName, "../../data/map.txt");
     883               string gameName(msg.buffer);
     884
     885               #if defined WINDOWS
     886                  game = new Game(gameName, "../../data/map.txt");
     887               #elif defined LINUX
     888                  game = new Game(gameName, "../data/map.txt");
     889               #endif
     890
    884891               cout << "Game name: " << gameName << endl;
    885892
Note: See TracChangeset for help on using the changeset viewer.