Changeset 3ea1839 in network-game for common/WorldMap.cpp
- Timestamp:
- Jun 26, 2014, 11:02:13 PM (10 years ago)
- Branches:
- master
- Children:
- e708305
- Parents:
- 34bd549
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/WorldMap.cpp
r34bd549 r3ea1839 232 232 // read the map dimensions 233 233 getline(file, line); 234 if (line.size() > 0) 235 { 236 istringstream iss(line); 237 string token; 238 getline(iss, token, 'x'); 239 width = atoi(token.c_str()); 240 getline(iss, token, 'x'); 241 height = atoi(token.c_str()); 242 } 234 235 istringstream iss(line); 236 string token; 237 getline(iss, token, 'x'); 238 width = atoi(token.c_str()); 239 getline(iss, token, 'x'); 240 height = atoi(token.c_str()); 243 241 244 242 cout << "width: " << width << endl;
Note:
See TracChangeset
for help on using the changeset viewer.