Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 2:15:32 PM (6 years ago)
Author:
ahuwyler
Message:

stones move not the walls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc

    r12351 r12355  
    218218        level_++;
    219219
    220         for(OrxoBloxWall* Wall : this->activeWalls_){
    221             int z_=(Wall->getPosition()).z;
     220        for(OrxoBloxStones* stone : this->stones_){
     221            int x_=(stone->getPosition()).x;
     222            int y_=(stone->getPosition()).y;
     223            int z_=(stone->getPosition()).z;
    222224            if(z_==90)this->end();
    223             Wall->setPosition(0,0,z_+9.0f);
    224         }
     225
     226            stone->setPosition(x_,y_,z_+9.0f);
     227        }
     228
     229
    225230        this->createWall();
    226231        this->activeWalls_.push_back(this->futureWall_);
Note: See TracChangeset for help on using the changeset viewer.