Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6744 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 25, 2006, 11:02:39 PM (19 years ago)
Author:
patrick
Message:

network: switching coding

Location:
branches/network/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/converter.cc

    r6740 r6744  
    338338 * @return: The number of written bytes
    339339 */
    340 int Converter::floatToByteArray(float x, byte* a, int length)
     340int Converter::_floatToByteArray(float x, byte* a, int length)
    341341{
    342342  if (length < FLOATSIZE)
     
    452452 * @return: The number of read bytes
    453453 */
    454 int Converter::byteArrayToFloat(const byte* a, float* x)
     454int Converter::_byteArrayToFloat(const byte* a, float* x)
    455455{
    456456    //handle 0
     
    527527 * @return: The number of written bytes
    528528 */
    529 int Converter::_floatToByteArray(float x, byte* a, int length)
     529int Converter::floatToByteArray(float x, byte* a, int length)
    530530{
    531531  if ( length< FLOATSIZE )
     
    538538  for (int i = 0; i < 4; i++)
    539539    a[i] = p[i];
    540  
     540
    541541  return FLOATSIZE;
    542542}
     
    549549 * @return: The number of read bytes
    550550 */
    551 int Converter::_byteArrayToFloat(const byte* a, float* x)
     551int Converter::byteArrayToFloat(const byte* a, float* x)
    552552{
    553553  *x = *((float*)a);
     
    702702  //floatTest(-0.0f);
    703703  //floatTest(-5.67e-29f);
    704  
    705  
     704
     705
    706706  //floatTest(-45.7e-32f);
    707707  //floatTest(45.7e-33f);
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6743 r6744  
    130130  this->getWeaponManager()->changeWeaponConfig(1);
    131131
    132   //EventHandler::getInstance()->grabEvents(true);
     132  EventHandler::getInstance()->grabEvents(true);
    133133
    134134  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
Note: See TracChangeset for help on using the changeset viewer.