replace mode: reset created element back to default properties, instead of just changing type
This commit is contained in:
parent
1e23269dd4
commit
ca8f4e3aac
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user