diff --git a/src/elements/bcol.c b/src/elements/bcol.c index 8482b9878..2bf89be61 100644 --- a/src/elements/bcol.c +++ b/src/elements/bcol.c @@ -25,8 +25,8 @@ int update_BCOL(UPDATE_FUNC_ARGS) { } if ((r&0xFF)==PT_LAVA && 1>(rand()%500)) { - if (parts[r>>8].ctype == 76) { - parts[r>>8].ctype = 14; + if (parts[r>>8].ctype == PT_IRON) { + parts[r>>8].ctype = PT_METL; kill_part(i); } } diff --git a/src/elements/coal.c b/src/elements/coal.c index 3cc68e3dd..c73f49c4a 100644 --- a/src/elements/coal.c +++ b/src/elements/coal.c @@ -30,6 +30,13 @@ int update_COAL(UPDATE_FUNC_ARGS) { 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; }