Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:34:20 AM (14 years ago)
Author:
rgrieder
Message:

Removed a ton of msvc warnings revealed with OGRE v1.7 (they removed the warning suppressors in OgrePrerequisites.h).
All of them are conversions from one type to another that might be lossy (mostly double to float, please always use "3.7f" instead of "3.7" as constants when using floats).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/notifications/NotificationQueue.cc

    r6417 r6502  
    139139            {
    140140                this->removeContainer(*it);
    141                 this->scroll(Vector2(0.0,-(1.1*this->getFontSize())));
     141                this->scroll(Vector2(0.0f,-(1.1f*this->getFontSize())));
    142142                it = this->containers_.begin(); //TODO: Needed?
    143143            }
    144144
    145             this->tickTime_ = 0.0; //!< Reset time counter.
     145            this->tickTime_ = 0.0f; //!< Reset time counter.
    146146        }
    147147    }
     
    193193            it = this->containers_.begin();
    194194            this->removeContainer(*it);
    195             this->scroll(Vector2(0.0,-(1.1*this->getFontSize())));
     195            this->scroll(Vector2(0.0f,-(1.1f*this->getFontSize())));
    196196        }
    197197
     
    375375        {
    376376            (*it)->overlay->setPosition(this->getPosition());
    377             (*it)->overlay->scroll(Vector2(0.0,(1.1*this->getFontSize())*counter));
     377            (*it)->overlay->scroll(Vector2(0.0f,(1.1f*this->getFontSize())*counter));
    378378            counter++;
    379379        }
     
    407407        this->size_= this->size_+1;
    408408
    409         container->overlay->scroll(Vector2(0.0,(1.1*this->getFontSize())*(this->getSize()-1)));
     409        container->overlay->scroll(Vector2(0.0f,(1.1f*this->getFontSize())*(this->getSize()-1)));
    410410    }
    411411
Note: See TracChangeset for help on using the changeset viewer.