Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2009, 10:00:15 AM (15 years ago)
Author:
rgrieder
Message:

Replaced <OgrePrerequisites.h> with "util/OgreForwardRefs.h": I haven't yet realised that OgrePrerequisites.h includes about every single std header by including the OgreMemoryManager.h file.
And while at it, I took care of some type conversions (partially revealed by the missing OgrePrerequisites.h that disabled warnings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/objects/worldentities/PongBall.cc

    r3186 r3192  
    5050        this->batID_[0] = OBJECTID_UNKNOWN;
    5151        this->batID_[1] = OBJECTID_UNKNOWN;
    52         this->relMercyOffset_ = 0.05;
     52        this->relMercyOffset_ = 0.05f;
    5353
    5454        this->registerVariables();
     
    103103                    if (position.x > this->fieldWidth_ / 2 && this->bat_[1])
    104104                    {
    105                         distance = (position.z - this->bat_[1]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10) / 2);
     105                        distance = (position.z - this->bat_[1]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10f) / 2);
    106106                        if (fabs(distance) <= 1)
    107107                        {
     
    123123                    if (position.x < -this->fieldWidth_ / 2 && this->bat_[0])
    124124                    {
    125                         distance = (position.z - this->bat_[0]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10) / 2);
     125                        distance = (position.z - this->bat_[0]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10f) / 2);
    126126                        if (fabs(distance) <= 1)
    127127                        {
     
    173173              if (position.x > this->fieldWidth_ / 2 && this->bat_[1])
    174174              {
    175                 distance = (position.z - this->bat_[1]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10) / 2);
     175                distance = (position.z - this->bat_[1]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10f) / 2);
    176176                if (fabs(distance) <= 1)
    177177                {
     
    184184              if (position.x < -this->fieldWidth_ / 2 && this->bat_[0])
    185185              {
    186                 distance = (position.z - this->bat_[0]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10) / 2);
     186                distance = (position.z - this->bat_[0]->getPosition().z) / (this->fieldHeight_ * (this->batlength_ * 1.10f) / 2);
    187187                if (fabs(distance) <= 1)
    188188                {
Note: See TracChangeset for help on using the changeset viewer.