"Pipe with ..." message when pipe is filled.

This commit is contained in:
savask 2011-11-12 21:04:29 +07:00
parent 859022ccb1
commit 73460283a2

View File

@ -2724,6 +2724,16 @@ int main(int argc, char *argv[])
sprintf(nametext, "Molten %s", lowername);
}
else if ((cr&0xFF)==PT_PIPE && (parts[cr>>8].tmp&0xFF) > 0 && (parts[cr>>8].tmp&0xFF) < PT_NUM )
{
char lowername[6];
int ix;
strcpy(lowername, ptypes[parts[cr>>8].tmp&0xFF].name);
for (ix = 0; lowername[ix]; ix++)
lowername[ix] = tolower(lowername[ix]);
sprintf(nametext, "Pipe with %s", lowername);
}
else if (DEBUG_MODE)
{
int tctype = parts[cr>>8].ctype;