Fix replace mode to allow replacing with GOL types

This commit is contained in:
Tamás Bálint Misius
2020-10-12 18:48:20 +02:00
parent a73d9b09b6
commit 02a3dcbaa2

View File

@@ -1771,7 +1771,7 @@ int Simulation::CreatePartFlags(int x, int y, int c, int flags)
(photons[y][x] && TYP(photons[y][x]) == replaceModeSelected))
{
if (c)
create_part(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), ID(c));
else
delete_part(x, y);
}