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:
parent
5fd31116a0
commit
635be04c16
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user