Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified build-and-run.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/screenComponents/radarView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void GuiRadarView::drawTargetProjections(sf::RenderTarget& window)
{
missile_target_angle = missile_tube_controls->getMissileTargetAngle();
}else{
float firing_solution = target_spaceship->weapon_tube[n].calculateFiringSolution(target_spaceship->getTarget());
float firing_solution = target_spaceship->weapon_tube[n].calculateFiringSolution(my_spaceship->getTarget(PreferencesManager::get("weapons_specific_station", "0").toInt()));
if (firing_solution != std::numeric_limits<float>::infinity())
missile_target_angle = firing_solution;
}
Expand Down
4 changes: 2 additions & 2 deletions src/screens/crew6/engineeringScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ EngineeringScreen::EngineeringScreen(GuiContainer* owner, ECrewPosition crew_pos
{
repair_label = new GuiLabel(box, "COOLANT_LABEL", tr("slider", "Repair"), 30);
repair_label->setAlignment(ACenterLeft)->setPosition(20, 220, ATopLeft)->setSize(400, 20);
repair_slider = new GuiSlider(box, "COOLANT_SLIDER", 0.0, 10.0, 0.0, [this](float value) {
repair_slider = new GuiSlider(box, "COOLANT_SLIDER", 10.0, 0.0, 0.0, [this](float value) {
if (my_spaceship && selected_system != SYS_None)
my_spaceship->commandSetSystemRepairRequest(selected_system, value);
});
Expand Down Expand Up @@ -476,7 +476,7 @@ void EngineeringScreen::onDraw(sf::RenderTarget& window)
power_slider->setValue(system.power_request);
coolant_label->setText(tr("Coolant: {coolant_level}%/{coolant_request}%").format({{"coolant_level", string(int(system.coolant_level / my_spaceship->max_coolant_per_system * 100))},{"coolant_request", string(int(std::min(system.coolant_request, my_spaceship->max_coolant) / my_spaceship->max_coolant_per_system * 100))}}));
coolant_slider->setEnable(!my_spaceship->auto_coolant_enabled);
coolant_slider->setRange(0.0, my_spaceship->max_coolant_per_system);
coolant_slider->setRange(my_spaceship->max_coolant_per_system, 0.0);
coolant_slider->setValue(std::min(system.coolant_request, my_spaceship->max_coolant));

if (gameGlobalInfo->use_nano_repair_crew)
Expand Down