[Orxonox-commit 7558] r12161 - code/branches/wagnis_HS18/src/modules/wagnis

stadlero at orxonox.net stadlero at orxonox.net
Wed Dec 5 20:08:42 CET 2018


Author: stadlero
Date: 2018-12-05 20:08:42 +0100 (Wed, 05 Dec 2018)
New Revision: 12161

Modified:
   code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc
Log:
Reinforcements bugfix

Modified: code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc
===================================================================
--- code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc	2018-12-05 18:51:11 UTC (rev 12160)
+++ code/branches/wagnis_HS18/src/modules/wagnis/Wagnis.cc	2018-12-05 19:08:42 UTC (rev 12161)
@@ -133,7 +133,6 @@
 
             player->gameStage = ATTACK_STAGE;
             this->gameStage = ATTACK_STAGE;
-            player->reinforcements = provincesOfPlayerCounter(player->Player_ID);
             orxout()<<"Player "<<player->Player_ID<<"\'s turn. Attack."<<endl;
             break;
         }
@@ -155,6 +154,7 @@
             next->gameStage = REINFORCEMENT_STAGE;
             this->gameStage = REINFORCEMENT_STAGE;
             next->setActive(true);
+            next->reinforcements = provincesOfPlayerCounter(next->Player_ID);
             break;
         }
         default:{}



More information about the Orxonox-commit mailing list