Changeset 53643ca in network-game for common/Player.cpp


Ignore:
Timestamp:
Jul 19, 2014, 12:32:33 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
4c00935
Parents:
cdb0e98
Message:

Server loads user profile and game history info from the database, saves game history to the db after every game, and uses a lua settings file to load db settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    rcdb0e98 r53643ca  
    3333   this->hasBlueFlag = false;
    3434   this->hasRedFlag = false;
     35
     36   this->level = 0;
     37   this->experience = 0;
     38   this->honor = 0;
     39   this->wins = 0;
     40   this->losses = 0;
    3541
    3642   this->currentGame = NULL;
     
    6672   this->hasRedFlag = p.hasRedFlag;
    6773
     74   this->level = p.level;
     75   this->experience = p.experience;
     76   this->honor = p.honor;
     77   this->wins = p.wins;
     78   this->losses = p.losses;
     79
    6880   this->currentGame = p.currentGame;
    6981}
     
    95107   this->hasBlueFlag = false;
    96108   this->hasRedFlag = false;
     109
     110   this->level = 0;
     111   this->experience = 0;
     112   this->honor = 0;
     113   this->wins = 0;
     114   this->losses = 0;
    97115
    98116   this->currentGame = NULL;
Note: See TracChangeset for help on using the changeset viewer.