Permalink
Browse files

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.
  • Loading branch information...
jacob1 committed Aug 30, 2015
1 parent 01afd69 commit 12ef4ec79d0e70a190646ce4d31a32f089641566
Showing with 7 additions and 0 deletions.
  1. +7 −0 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<XRES && y>=0 && y<YRES)
aheat = sim->hv[y/CELL][x/CELL];
sprintf(buff, "%3.2f", aheat);
}
else if (!strcmp(signText,"{t}"))
{
if (x>=0 && x<XRES && y>=0 && y<YRES && sim->pmap[y][x])

0 comments on commit 12ef4ec

Please sign in to comment.