Skip to content

Commit

Permalink
ambient heat sign
Browse files Browse the repository at this point in the history
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 12ef4ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/simulation/Sign.cpp
Expand Up @@ -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])
Expand Down

0 comments on commit 12ef4ec

Please sign in to comment.