Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2011, 11:07:46 PM (13 years ago)
Author:
rgrieder
Message:

Fixed MSVC build (dllexport problems) and warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/modules/tetris/Tetris.cc

    r8567 r8586  
    127127        assert(stone);
    128128
    129         if(position.y < this->center_->getStoneSize()/2.0) //!< If the stone has reached the bottom of the level
    130         {
    131             stone->setPosition(Vector3(stone->getPosition().x, this->center_->getStoneSize()/2.0, stone->getPosition().z));
     129        if(position.y < this->center_->getStoneSize()/2.0f) //!< If the stone has reached the bottom of the level
     130        {
     131            stone->setPosition(Vector3(stone->getPosition().x, this->center_->getStoneSize()/2.0f, stone->getPosition().z));
    132132            return false;
    133133        }
     
    257257        // Attach the stone to the Centerpoint and set the position of the stone to be at the top middle.
    258258        this->center_->attach(stone);
    259         float xPos = (this->center_->getWidth()/2 + ((this->center_->getWidth() % 2)*2-1)/2.0)*this->center_->getStoneSize();
    260         float yPos = (this->center_->getHeight()-0.5)*this->center_->getStoneSize();
     259        float xPos = (this->center_->getWidth()/2 + ((this->center_->getWidth() % 2)*2-1)/2.0f)*this->center_->getStoneSize();
     260        float yPos = (this->center_->getHeight()-0.5f)*this->center_->getStoneSize();
    261261        stone->setPosition(xPos, yPos, 0.0f);
    262262        stone->setGame(this);
Note: See TracChangeset for help on using the changeset viewer.