Changeset 12173 for code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc
- Timestamp:
- Dec 8, 2018, 6:04:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc
r12172 r12173 18 18 this->initial_reinforcements_left = 2; //changed here 19 19 20 int n = 6;20 int n = 4; 21 21 for(int i = 0;i < n;i++){ 22 22 WagnisPlayer* p = new WagnisPlayer(context); … … 74 74 //Still empty provinces left 75 75 76 if(this->active_player < this->players.size()){76 if(this->active_player < (int)this->players.size()){ 77 77 this->active_player++; 78 78 }else{ … … 101 101 if(this->initial_reinforcements_left > 0){ 102 102 player->setActive(false); 103 if(this->active_player == this->players.size()){103 if(this->active_player == (int)this->players.size()){ 104 104 //Last player finished this round of initial troops. 105 105 this->initial_reinforcements_left -= 1; … … 142 142 int tc; 143 143 do{ 144 if(this->active_player < this->players.size()){144 if(this->active_player < (int)this->players.size()){ 145 145 this->active_player++; 146 146 }else{
Note: See TracChangeset
for help on using the changeset viewer.