if (!r) { int nr = create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_BRAY); if (nr!=-1) { if (destroy) {//if it came from PSCN parts[nr].tmp = 2; parts[nr].life = 2; } else parts[nr].ctype = colored; } }
to
if (!r) { int nr = create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_BRAY); if (nr!=-1) { parts[nr].temp = parts[i].temp; if (destroy) {//if it came from PSCN parts[nr].tmp = 2; parts[nr].life = 2; } else parts[nr].ctype = colored; } }