diff options
Diffstat (limited to 'src/simulation/elements/PIPE.cpp')
| -rw-r--r-- | src/simulation/elements/PIPE.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/simulation/elements/PIPE.cpp b/src/simulation/elements/PIPE.cpp index 3d631a1..80f6ba2 100644 --- a/src/simulation/elements/PIPE.cpp +++ b/src/simulation/elements/PIPE.cpp @@ -216,21 +216,13 @@ int Element_PIPE::update(UPDATE_FUNC_ARGS) { if (parts[i].temp<272.15)//manual pipe colors { - if (parts[i].temp>173.25&&parts[i].temp<273.15) - { + if (parts[i].temp>173.25) parts[i].ctype = 2; - parts[i].life = 0; - } - if (parts[i].temp>73.25&&parts[i].temp<=173.15) - { + else if (parts[i].temp>73.25) parts[i].ctype = 3; - parts[i].life = 0; - } - if (parts[i].temp>=0&&parts[i].temp<=73.15) - { + else if (parts[i].temp>=0) parts[i].ctype = 4; - parts[i].life = 0; - } + parts[i].life = 0; } else { |
