From 12ef4ec79d0e70a190646ce4d31a32f089641566 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 29 Aug 2015 23:47:21 -0400 Subject: [PATCH] ambient heat sign maybe something that would replace all instances of {aheat} / {t} / {p} in a sign would be nice, but for now just do this. --- src/simulation/Sign.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/simulation/Sign.cpp b/src/simulation/Sign.cpp index 5bec677d5c..7b5915d1d3 100644 --- a/src/simulation/Sign.cpp +++ b/src/simulation/Sign.cpp @@ -25,6 +25,13 @@ std::string sign::getText(Simulation *sim) pressure = sim->pv[y/CELL][x/CELL]; sprintf(buff, "Pressure: %3.2f", pressure); //...pressure } + else if (!strcmp(signText,"{aheat}")) + { + float aheat = 0.0f; + if (x>=0 && x=0 && yhv[y/CELL][x/CELL]; + sprintf(buff, "%3.2f", aheat); + } else if (!strcmp(signText,"{t}")) { if (x>=0 && x=0 && ypmap[y][x])