Game Development Community

TGE/TGEA (all ver) network wastage in Debris

by Fyodor -bank- Osokin · in Torque Game Engine · 07/16/2007 (12:58 pm) · 1 replies

If you go in TGE SDK (checked from 1.3 upto latest 1.5.2 and all of TGEA) in game/debris.cc/cpp you will find that in functions packData / unpackData the two fields are transmitted over the network twice!

Looks like copy/paste bug.

Fix? remove
stream->write(minSpinSpeed);
   stream->write(maxSpinSpeed);
and
stream->read(&minSpinSpeed);
   stream->read(&maxSpinSpeed);
pairs of lines in packData / unpackData. Be sure to remove exact pair. If you remove the second pair in packData, then in unpackData you need to remove second pair too, not first one.

Cheers!