TPT: Prevent CONV from destroying diamond

This commit is contained in:
Simon Robertshaw 2012-08-20 16:54:56 +01:00
parent b318c3721a
commit 51a0fb2d45

View File

@ -82,7 +82,7 @@ int Element_CONV::update(UPDATE_FUNC_ARGS)
r = pmap[y+ry][x+rx];
if (!r)
continue;
if((r&0xFF)!=PT_CONV && (r&0xFF)!=parts[i].ctype)
if((r&0xFF)!=PT_CONV && (r&0xFF)!=PT_DMND && (r&0xFF)!=parts[i].ctype)
{
if (parts[i].ctype==PT_LIFE) sim->create_part(r>>8, x+rx, y+ry, parts[i].ctype|(parts[i].tmp<<8));
else sim->create_part(r>>8, x+rx, y+ry, parts[i].ctype);