mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 11:41:51 +02:00
fix GOL detection with DTEC
This commit is contained in:
@@ -82,7 +82,7 @@ int Element_DTEC::update(UPDATE_FUNC_ARGS)
|
|||||||
r = sim->photons[y+ry][x+rx];
|
r = sim->photons[y+ry][x+rx];
|
||||||
if(!r)
|
if(!r)
|
||||||
continue;
|
continue;
|
||||||
if (parts[r>>8].type == parts[i].ctype && (parts[i].ctype != PT_LIFE || parts[i].tmp == parts[r>>8].tmp))
|
if (parts[r>>8].type == parts[i].ctype && (parts[i].ctype != PT_LIFE || parts[i].tmp == parts[r>>8].ctype || !parts[i].tmp))
|
||||||
parts[i].life = 1;
|
parts[i].life = 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user