2
0
Эх сурвалжийг харах

Fixed stream read/write mismatch bug.

It was causing Vehicles to roll forwards with a constant velocity when
stationary, and ignore move->y.
Daniel Buckmaster 13 жил өмнө
parent
commit
b097c76eda

+ 1 - 1
Engine/source/T3D/vehicles/vehicle.cpp

@@ -298,7 +298,7 @@ void VehicleData::packData(BitStream* stream)
 
    stream->write(steeringReturn);
    stream->write(steeringReturnSpeedScale);
-   stream->write(powerSteering);
+   stream->writeFlag(powerSteering);
 
    stream->writeFlag(cameraRoll);
    stream->write(cameraLag);