Changeset 3ea1839 in network-game for common/WorldMap.cpp


Ignore:
Timestamp:
Jun 26, 2014, 11:02:13 PM (10 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
master
Children:
e708305
Parents:
34bd549
Message:

Fix Mac compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/WorldMap.cpp

    r34bd549 r3ea1839  
    232232      // read the map dimensions
    233233      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());
    243241
    244242      cout << "width: " << width << endl;
Note: See TracChangeset for help on using the changeset viewer.