Added: #1469 sendCameraStep implementation for follow entity animations

--HG--
branch : gsoc2012-fabien
hg/feature/gsoc2012-fabien
Fabien_HENON 13 years ago
parent 027ec2ca98
commit 5b8c34b25e

@ -205,6 +205,9 @@ public:
virtual void sendAnimationStep(NLMISC::CBitMemStream& bms) virtual void sendAnimationStep(NLMISC::CBitMemStream& bms)
{ {
CCameraAnimationStepBasic::sendAnimationStep(bms); CCameraAnimationStepBasic::sendAnimationStep(bms);
bms.serial(const_cast<TPositionOrEntity&>(EntityToFollow));
bms.serial(const_cast<float&>(DistanceToEntity));
} }
}; };
CAMERA_ANIMATION_REGISTR_STEP(CCameraAnimationStepFollowEntity, "camera_animation_follow_entity"); CAMERA_ANIMATION_REGISTR_STEP(CCameraAnimationStepFollowEntity, "camera_animation_follow_entity");

Loading…
Cancel
Save