Changeset b650f8a in network-game for common


Ignore:
Timestamp:
Jun 23, 2013, 5:12:36 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
147f662
Parents:
9b1e12c
Message:

Increased the map size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/WorldMap.cpp

    r9b1e12c rb650f8a  
    194194WorldMap* WorldMap::loadMapFromFile(string filename)
    195195{
    196    WorldMap* m = new WorldMap(12l, 12);
     196    WorldMap* m = NULL;
    197197
    198198   ifstream file(filename.c_str());
     
    217217      cout << "width: " << width << endl;
    218218      cout << "height: " << height << endl;
     219
     220      m = new WorldMap(width, height);
    219221
    220222      // read the map contents
     
    284286               case 1:
    285287                  structure = STRUCTURE_BLUE_FLAG;
    286                   cout << "Should have added blue flag object" << endl;
    287288                  break;
    288289               case 2:
    289290                  structure = STRUCTURE_RED_FLAG;
    290                   cout << "Should have added red flag object" << endl;
    291291                  break;
    292292               }
Note: See TracChangeset for help on using the changeset viewer.