Fixes a runtime in PDA gas scanner code (#28310)

* Runtime fix

* Chuga review

* Update code/game/objects/items/devices/scanners.dm

Co-authored-by: chuga-git <98280110+chuga-git@users.noreply.github.com>
Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>

* forgot I changed these too.

Co-authored-by: chuga-git <98280110+chuga-git@users.noreply.github.com>
Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>

---------

Signed-off-by: Silverplate <118299273+silverplatedelta@users.noreply.github.com>
Co-authored-by: chuga-git <98280110+chuga-git@users.noreply.github.com>
This commit is contained in:
Silverplate
2025-02-24 16:08:56 +00:00
committed by GitHub
co-authored by chuga-git
parent 6d36d8bea6
commit f9c7f9f118
+2 -1
View File
@@ -750,7 +750,6 @@ SLIME SCANNER
volume = air.return_volume() //could just do mixture.volume... but safety, I guess?
heat_capacity = air.heat_capacity()
thermal_energy = air.thermal_energy()
if(total_moles)
message += "<span class='notice'>Total: [round(total_moles, 0.01)] moles</span>"
if(air.oxygen() && (milla_turf_details || air.oxygen() / total_moles > 0.01))
@@ -776,6 +775,8 @@ SLIME SCANNER
else// Sum mixtures then present
for(var/datum/gas_mixture/air as anything in airs)
if(isnull(air))
continue
total_moles += air.total_moles()
volume += air.return_volume()
heat_capacity += air.heat_capacity()