From 653bbb8ff2122418237a483e21be36a120f3fa06 Mon Sep 17 00:00:00 2001 From: Rerik007 <120549107+Rerik007@users.noreply.github.com> Date: Thu, 23 May 2024 15:19:09 +0300 Subject: [PATCH] bugfix: ice correct melt into water (#5078) Update wet_floor.dm --- code/datums/components/wet_floor.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/components/wet_floor.dm b/code/datums/components/wet_floor.dm index 464b907efd7..174a0be27a4 100644 --- a/code/datums/components/wet_floor.dm +++ b/code/datums/components/wet_floor.dm @@ -136,8 +136,9 @@ decrease = INFINITY decrease = max(0, decrease) if((is_wet() & TURF_WET_ICE) && t > T0C) //Ice melts into water! - add_wet(TURF_WET_WATER, max_time_left()) + var/timeleft = max_time_left() dry(null, TURF_WET_ICE) + add_wet(TURF_WET_WATER, timeleft) dry(null, ALL, FALSE, decrease) check() last_process = world.time