- Timestamp:
- Jan 25, 2006, 11:02:39 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/converter.cc
r6740 r6744 338 338 * @return: The number of written bytes 339 339 */ 340 int Converter:: floatToByteArray(float x, byte* a, int length)340 int Converter::_floatToByteArray(float x, byte* a, int length) 341 341 { 342 342 if (length < FLOATSIZE) … … 452 452 * @return: The number of read bytes 453 453 */ 454 int Converter:: byteArrayToFloat(const byte* a, float* x)454 int Converter::_byteArrayToFloat(const byte* a, float* x) 455 455 { 456 456 //handle 0 … … 527 527 * @return: The number of written bytes 528 528 */ 529 int Converter:: _floatToByteArray(float x, byte* a, int length)529 int Converter::floatToByteArray(float x, byte* a, int length) 530 530 { 531 531 if ( length< FLOATSIZE ) … … 538 538 for (int i = 0; i < 4; i++) 539 539 a[i] = p[i]; 540 540 541 541 return FLOATSIZE; 542 542 } … … 549 549 * @return: The number of read bytes 550 550 */ 551 int Converter:: _byteArrayToFloat(const byte* a, float* x)551 int Converter::byteArrayToFloat(const byte* a, float* x) 552 552 { 553 553 *x = *((float*)a); … … 702 702 //floatTest(-0.0f); 703 703 //floatTest(-5.67e-29f); 704 705 704 705 706 706 //floatTest(-45.7e-32f); 707 707 //floatTest(45.7e-33f); -
branches/network/src/world_entities/space_ships/space_ship.cc
r6743 r6744 130 130 this->getWeaponManager()->changeWeaponConfig(1); 131 131 132 //EventHandler::getInstance()->grabEvents(true);132 EventHandler::getInstance()->grabEvents(true); 133 133 134 134 bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
Note: See TracChangeset
for help on using the changeset viewer.