Added the same IF to COAL for consistency, seems to work. Changed Ctypes to PT_Names instead of equivilent numbers.

This commit is contained in:
Cate 2011-04-19 12:25:30 -04:00 committed by Simon
parent 5fd31116a0
commit 635be04c16
2 changed files with 9 additions and 2 deletions

View File

@ -25,8 +25,8 @@ int update_BCOL(UPDATE_FUNC_ARGS) {
} }
if ((r&0xFF)==PT_LAVA && 1>(rand()%500)) if ((r&0xFF)==PT_LAVA && 1>(rand()%500))
{ {
if (parts[r>>8].ctype == 76) { if (parts[r>>8].ctype == PT_IRON) {
parts[r>>8].ctype = 14; parts[r>>8].ctype = PT_METL;
kill_part(i); kill_part(i);
} }
} }

View File

@ -30,6 +30,13 @@ int update_COAL(UPDATE_FUNC_ARGS) {
parts[i].life = 99; parts[i].life = 99;
} }
} }
if ((r&0xFF)==PT_LAVA && 1>(rand()%500))
{
if (parts[r>>8].ctype == PT_IRON) {
parts[r>>8].ctype = PT_METL;
kill_part(i);
}
}
} }
return 0; return 0;
} }