Changeset b650f8a in network-game for common/WorldMap.cpp
- Timestamp:
- Jun 23, 2013, 5:12:36 PM (11 years ago)
- Branches:
- master
- Children:
- 147f662
- Parents:
- 9b1e12c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/WorldMap.cpp
r9b1e12c rb650f8a 194 194 WorldMap* WorldMap::loadMapFromFile(string filename) 195 195 { 196 WorldMap* m = new WorldMap(12l, 12);196 WorldMap* m = NULL; 197 197 198 198 ifstream file(filename.c_str()); … … 217 217 cout << "width: " << width << endl; 218 218 cout << "height: " << height << endl; 219 220 m = new WorldMap(width, height); 219 221 220 222 // read the map contents … … 284 286 case 1: 285 287 structure = STRUCTURE_BLUE_FLAG; 286 cout << "Should have added blue flag object" << endl;287 288 break; 288 289 case 2: 289 290 structure = STRUCTURE_RED_FLAG; 290 cout << "Should have added red flag object" << endl;291 291 break; 292 292 }
Note:
See TracChangeset
for help on using the changeset viewer.