Why do we have:
Code: Select all
void WorldView::OnClickBlastoff()
{
Pi::BoinkNoise();
if (Pi::player->GetFlightState() == Ship::DOCKED) {
if (!Pi::player->Undock()) {
Pi::cpan->MsgLog()->ImportantMessage(Pi::player->GetDockedWith()->GetLabel(),
Lang::LAUNCH_PERMISSION_DENIED_BUSY);
}
} else {
Pi::player->Blastoff();
}
}
Removing that if-statement would allow us to use the permission-string only from ui-code, thus fixing this in Lobby.lua:
Code: Select all
local l = Lang.GetResource("ui-core")
-- XXX for LAUNCH_PERMISSION_DENIED_BUSY, still needed by WorldView
local lcore = Lang.GetResource("core")