Changeset 7ca5d21 in network-game
- Timestamp:
- Jun 23, 2013, 2:12:33 PM (11 years ago)
- Branches:
- master
- Children:
- 9b1e12c
- Parents:
- 521c88b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/DataAccess.cpp
r521c88b r7ca5d21 84 84 cout << "Creating a new player" << endl; 85 85 p = new Player(string(row[1]), string(row[2])); 86 p->setClass((Player::PlayerClass)atoi(row[3])); 87 cout << "Class from db: " << atoi(row[3]) << endl; 86 if (row[3] == NULL) { 87 p->setClass(Player::CLASS_NONE); 88 cout << "Class from db was NULL" << endl; 89 }else { 90 p->setClass((Player::PlayerClass)atoi(row[3])); 91 cout << "Class from db: " << atoi(row[3]) << endl; 92 } 88 93 cout << "Player class: " << p->playerClass << endl; 89 94 cout << "Created new player" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.