Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mountable autoclave consumes frozen water if liquid water is available #46188

Open
pehamm opened this issue Dec 20, 2020 · 0 comments
Open

Mountable autoclave consumes frozen water if liquid water is available #46188

pehamm opened this issue Dec 20, 2020 · 0 comments
Labels
<Bug> This needs to be fixed Vehicles Vehicles, parts, mechanics & interactions

Comments

@pehamm
Copy link
Contributor

pehamm commented Dec 20, 2020

Describe the bug

Autoclaves are coded to not consume frozen water. However, while the autoclave complains about only having frozen water if no liquid water is available, having frozen water in one tank and liquid water in another tank uses up frozen water instead of the available liquid water, at least when the tank with the frozen water is listed first. After a cursory look at the code in vehicle.cpp, it looks like fuel_left correctly excludes frozen fuel, but drain does not seem to run the same checks and uses up the frozen water when called by use_autoclave.

Steps To Reproduce

Set up a vehicle with a mounted autoclave, a packed CBM inside, and a fuel tank with frozen water. Heat up at least 8 water to a liquid state and put it in another tank. The autoclave starts the cycle as expected, but uses up the frozen water that it complained about when there was no liquid water available.

Expected behavior

An autoclave should only drain liquid water from tanks.

Versions and configuration

  • OS: MacOs
    • OS Version: Name: Mac OS X; Version: 10.14.6; Build: 18G6020;
  • Game Version: 0.E-8222-g98cb58d54a [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Bionic Professions [package_bionic_professions]
    ]
@anothersimulacrum anothersimulacrum added <Bug> This needs to be fixed Vehicles Vehicles, parts, mechanics & interactions labels Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

No branches or pull requests

2 participants