From 7da144fbae1dac390ddf3bbcc69a990cf91398ac Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 5 Nov 2012 14:45:46 +0000 Subject: [PATCH] Fix INVS staying dark blue even when pressure is removed --- src/simulation/elements/INVIS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simulation/elements/INVIS.cpp b/src/simulation/elements/INVIS.cpp index 03f2d6986..54d722dbf 100644 --- a/src/simulation/elements/INVIS.cpp +++ b/src/simulation/elements/INVIS.cpp @@ -51,6 +51,8 @@ int Element_INVIS::update(UPDATE_FUNC_ARGS) { if (sim->pv[y/CELL][x/CELL]>4.0f || sim->pv[y/CELL][x/CELL]<-4.0f) parts[i].tmp = 1; + else + parts[i].tmp = 0; return 0; }