Transfer properties of COAL breaking into BCOL (Fixes #602)

Fixing a problem where decoration is not transferred from COAL to BCOL when broken. All properties of COAL should now be copied to the new BCOL particle, including if it is burning, decoration and discoloration caused from heating.
This commit is contained in:
Caeleron 2018-12-25 17:12:56 -05:00 committed by jacob1
parent 87fb94ce94
commit 9e94abb150

View File

@ -63,7 +63,7 @@ int Element_COAL::update(UPDATE_FUNC_ARGS)
else if (parts[i].tmp<40&&parts[i].tmp>0)
parts[i].tmp--;
else if (parts[i].tmp<=0) {
sim->create_part(i, x, y, PT_BCOL);
sim->part_change_type(i, x, y, PT_BCOL);
return 1;
}
}