From 635be04c16ed6c3f5cb09146461ff005db82e5ac Mon Sep 17 00:00:00 2001 From: Cate Date: Tue, 19 Apr 2011 12:25:30 -0400 Subject: [PATCH] Added the same IF to COAL for consistency, seems to work. Changed Ctypes to PT_Names instead of equivilent numbers. --- src/elements/bcol.c | 4 ++-- 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 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; }