replace mode: reset created element back to default properties, instead of just changing type

This commit is contained in:
jacob1 2020-02-08 10:40:29 -05:00
parent 1e23269dd4
commit ca8f4e3aac

View File

@ -1769,13 +1769,9 @@ int Simulation::CreatePartFlags(int x, int y, int c, int flags)
(photons[y][x] && TYP(photons[y][x]) == replaceModeSelected))
{
if (c)
{
part_change_type(photons[y][x] ? ID(photons[y][x]) : ID(pmap[y][x]), x, y, TYP(c));
}
create_part(photons[y][x] ? ID(photons[y][x]) : ID(pmap[y][x]), x, y, TYP(c));
else
{
delete_part(x, y);
}
}
return 0;
}