summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-03-15 15:53:21 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2011-03-15 15:57:12 (GMT)
commit3b7cf2475743d6753c89e46c1ed762a7f487cc3c (patch)
treebc847399992cf1bc7e702931c2d458ecbd3e6724 /src
parentdb91bd37f03a1a195a6bfc97235b7d08026d1193 (diff)
downloadpowder-3b7cf2475743d6753c89e46c1ed762a7f487cc3c.zip
powder-3b7cf2475743d6753c89e46c1ed762a7f487cc3c.tar.gz
Display element contained by PIPE in debug mode
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 845277c..b06693c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1957,6 +1957,11 @@ int main(int argc, char *argv[])
int tctype = parts[cr>>8].ctype;
if (tctype>=PT_NUM || (cr&0xFF)==PT_PHOT)
tctype = 0;
+ if ((cr&0xFF)==PT_PIPE)
+ {
+ if (parts[cr>>8].tmp<PT_NUM) tctype = parts[cr>>8].tmp;
+ else tctype = 0;
+ }
sprintf(heattext, "%s (%s), Pressure: %3.2f, Temp: %4.2f C, Life: %d", ptypes[cr&0xFF].name, ptypes[tctype].name, pv[(y/sdl_scale)/CELL][(x/sdl_scale)/CELL], parts[cr>>8].temp-273.15f, parts[cr>>8].life);
sprintf(coordtext, "#%d, X:%d Y:%d", cr>>8, x/sdl_scale, y/sdl_scale);
} else {