Changeset 12173 for code/branches/wagnis_HS18/src
- Timestamp:
- Dec 8, 2018, 6:04:56 PM (6 years ago)
- Location:
- code/branches/wagnis_HS18/src/modules/wagnis
- Files:
-
- 2 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{ -
code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.h
r12172 r12173 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * > www.orxonox.net < 4 * 5 * 6 * License notice: 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 * 22 * Authors: 23 * 24 * Co-authors: 25 * ... 26 * 27 */ 1 28 2 29
Note: See TracChangeset
for help on using the changeset viewer.