From 635be04c16ed6c3f5cb09146461ff005db82e5ac Mon Sep 17 00:00:00 2001 From: Cate Date: Tue, 19 Apr 2011 12:25:30 -0400 Subject: Added the same IF to COAL for consistency, seems to work. Changed Ctypes to PT_Names instead of equivilent numbers. 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; } -- cgit v0.9.2-21-gd62e