Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2011, 4:52:30 AM (13 years ago)
Author:
rgrieder
Message:

Not using doubles at all in Orxonox because the Renderer (DirectX in particular) might set to single precision. So the general strategy would be not to use doubles at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib2/src/libraries/network/ClientInformation.cc

    r7801 r8313  
    150150  }
    151151
    152   double ClientInformation::getPacketLoss(){
    153     return static_cast<double>(this->peer_->packetLoss)/ENET_PEER_PACKET_LOSS_SCALE;
     152  float ClientInformation::getPacketLoss(){
     153    return static_cast<float>(this->peer_->packetLoss)/ENET_PEER_PACKET_LOSS_SCALE;
    154154  }
    155155
Note: See TracChangeset for help on using the changeset viewer.