From db8d5ce158859555e9e60e10d03d40bbe4c52f85 Mon Sep 17 00:00:00 2001 From: Scriblon Date: Sat, 22 Oct 2016 21:05:40 +0200 Subject: [PATCH] Fix pAI Atmosphere Sensor The problem was that in the old code, data["pressure"] was stored as a String to round it. While NanoUI was programmed to use helper.smoothRound() on that again which didn't like the String Object pressure became. As all data is integers and rouned in the UI, the fix chosen is to make data["pressure"] a number again. --- code/modules/mob/living/silicon/pai/software_modules.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/pai/software_modules.dm b/code/modules/mob/living/silicon/pai/software_modules.dm index dfa79a0d0d1..104c2746d16 100644 --- a/code/modules/mob/living/silicon/pai/software_modules.dm +++ b/code/modules/mob/living/silicon/pai/software_modules.dm @@ -547,8 +547,7 @@ else var/datum/gas_mixture/env = T.return_air() data["reading"] = 1 - var/pres = env.return_pressure() * 10 - data["pressure"] = "[round(pres/10)].[pres%10]" + data["pressure"] = env.return_pressure() data["temperature"] = round(env.temperature) data["temperatureC"] = round(env.temperature-T0C)