Skip to content

Commit

Permalink
force camera reset on ship change, otherwise the old offsets get used
Browse files Browse the repository at this point in the history
  • Loading branch information
robn committed Oct 10, 2012
1 parent f2adfcf commit fdfeedc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ship.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit fdfeedc

Please sign in to comment.