Changeset 233e736 in network-game for common/Game.cpp


Ignore:
Timestamp:
Sep 27, 2013, 6:56:04 PM (11 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
master
Children:
a6fe73d
Parents:
d519032
Message:

Fixed a client-side map loading bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Game.cpp

    rd519032 r233e736  
    1111}
    1212
    13 Game::Game(string name) {
     13Game::Game(string name, string filepath) {
    1414   this->id = 0;
    1515   this->name = name;
    1616   this->blueScore = 0;
    1717   this->redScore = 0;
    18    this->worldMap = WorldMap::loadMapFromFile("../data/map.txt");
     18   this->worldMap = WorldMap::loadMapFromFile(filepath);
    1919}
    2020
Note: See TracChangeset for help on using the changeset viewer.