Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2018, 7:51:11 PM (5 years ago)
Author:
stadlero
Message:

some bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc

    r12150 r12160  
    6464 **/
    6565void Wagnis::playerFinishedStageCallback(WagnisPlayer* player){
     66
     67    player->resetProvinceSelection();
    6668
    6769    if(this->active_player != player->Player_ID){
     
    132134            player->gameStage = ATTACK_STAGE;
    133135            this->gameStage = ATTACK_STAGE;
     136            player->reinforcements = provincesOfPlayerCounter(player->Player_ID);
    134137            orxout()<<"Player "<<player->Player_ID<<"\'s turn. Attack."<<endl;
    135138            break;
     
    170173    }
    171174
    172     //this->gameBoard->initializeNeighbors();
    173 
    174     //for(WagnisPlayer* p: this->players){
    175         //this->playerEntered(p);
    176     //}
     175    this->gameBoard->initializeNeighbors();
    177176   
    178177    orxout() << "Game creation finished" << endl;
     
    198197            }
    199198        }else{
    200             orxout()<<"Nullpointer found in provines!!!"<<endl;
     199            orxout()<<"Nullpointer found in provinces!!!"<<endl;
    201200        }
    202201    }
     
    212211            }
    213212        }else{
    214             orxout()<<"Nullpointer found in provines!!!"<<endl;
     213            orxout()<<"Nullpointer found in provinces!!!"<<endl;
    215214        }
    216215    }
Note: See TracChangeset for help on using the changeset viewer.