[Orxonox-commit 7763] r12355 - code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
ahuwyler at orxonox.net
ahuwyler at orxonox.net
Thu May 9 14:15:33 CEST 2019
Author: ahuwyler
Date: 2019-05-09 14:15:32 +0200 (Thu, 09 May 2019)
New Revision: 12355
Modified:
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
Log:
stones move not the walls
Modified: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
===================================================================
--- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc 2019-05-09 12:10:31 UTC (rev 12354)
+++ code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc 2019-05-09 12:15:32 UTC (rev 12355)
@@ -217,11 +217,16 @@
void OrxoBlox::LevelUp(){
level_++;
- for(OrxoBloxWall* Wall : this->activeWalls_){
- int z_=(Wall->getPosition()).z;
+ for(OrxoBloxStones* stone : this->stones_){
+ int x_=(stone->getPosition()).x;
+ int y_=(stone->getPosition()).y;
+ int z_=(stone->getPosition()).z;
if(z_==90)this->end();
- Wall->setPosition(0,0,z_+9.0f);
+
+ stone->setPosition(x_,y_,z_+9.0f);
}
+
+
this->createWall();
this->activeWalls_.push_back(this->futureWall_);
for (int i = 0; i < this->futureWall_->getNumberOfStones(); i++) {
More information about the Orxonox-commit
mailing list