diff options
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/bcol.c | 4 | ||||
| -rw-r--r-- | src/elements/coal.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/elements/bcol.c b/src/elements/bcol.c index 8482b98..2bf89be 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 3cc68e3..c73f49c 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; } |
