From ddd326eafd0b9daaa7f33d47f52cdd3e43a2ef6a Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 23 Apr 2017 12:51:40 -0400 Subject: [PATCH] fix LSNS --- src/gui/game/GameView.cpp | 2 +- src/simulation/Simulation.cpp | 1 + LSNS.cpp => src/simulation/elements/LSNS.cpp | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename LSNS.cpp => src/simulation/elements/LSNS.cpp (100%) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 9c727d713..1023f5897 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2323,7 +2323,7 @@ void GameView::OnDraw() sampleInfo << ", Tmp: " << sample.particle.tmp; // only elements that use .tmp2 show it in the debug HUD - if (type == PT_CRAY || type == PT_DRAY || type == PT_EXOT || type == PT_LIGH || type == PT_SOAP || type == PT_TRON || type == PT_VIBR || type == PT_VIRS || type == PT_WARP || type == PT_LCRY || type == PT_CBNW || type == PT_TSNS || type == PT_DTEC || type == PT_PSTN) + if (type == PT_CRAY || type == PT_DRAY || type == PT_EXOT || type == PT_LIGH || type == PT_SOAP || type == PT_TRON || type == PT_VIBR || type == PT_VIRS || type == PT_WARP || type == PT_LCRY || type == PT_CBNW || type == PT_TSNS || type == PT_DTEC || type == PT_LSNS || type == PT_PSTN) sampleInfo << ", Tmp2: " << sample.particle.tmp2; sampleInfo << ", Pressure: " << std::fixed << sample.AirPressure; diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 300100ed0..5cf698f39 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -3169,6 +3169,7 @@ int Simulation::create_part(int p, int x, int y, int t, int v) break; case PT_DTEC: case PT_TSNS: + case PT_LSNS: parts[i].tmp2 = 2; break; case PT_VINE: diff --git a/LSNS.cpp b/src/simulation/elements/LSNS.cpp similarity index 100% rename from LSNS.cpp rename to src/simulation/elements/LSNS.cpp