From fdfeedceb69aa511e7b7bfa84142e5738b8e453a Mon Sep 17 00:00:00 2001 From: Robert Norris Date: Wed, 10 Oct 2012 16:40:16 +1100 Subject: [PATCH] force camera reset on ship change, otherwise the old offsets get used --- src/Ship.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ship.cpp b/src/Ship.cpp index be6540df89f..80ea81a15c9 100644 --- a/src/Ship.cpp +++ b/src/Ship.cpp @@ -1293,6 +1293,8 @@ void Ship::ResetFlavour(const ShipFlavour *f) m_equipment.InitSlotSizes(f->type); SetLabel(f->regid); Init(); + if (IsType(Object::PLAYER)) + Pi::worldView->SetCamType(Pi::worldView->GetCamType()); LuaEvent::Queue("onShipFlavourChanged", this); }