Prevent CONV from destroying diamond

This commit is contained in:
jacob1 2012-08-12 18:10:20 -04:00 committed by jacksonmj
parent b3b9b0961c
commit ab5150b36c

View File

@ -49,7 +49,7 @@ int update_CONV(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) create_part(r>>8, x+rx, y+ry, parts[i].ctype|(parts[i].tmp<<8));
else create_part(r>>8, x+rx, y+ry, parts[i].ctype);