mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-08 09:26:28 +02:00
TPT: Allow DEST to be cloned with CLNE, PCLN, BCLN and PBCN 57d8335ca5
This commit is contained in:
@@ -6,7 +6,7 @@ int update_DEST(UPDATE_FUNC_ARGS) {
|
|||||||
ry=rand()%5-2;
|
ry=rand()%5-2;
|
||||||
|
|
||||||
r = pmap[y+ry][x+rx];
|
r = pmap[y+ry][x+rx];
|
||||||
if (!r || (r&0xFF)==PT_DEST || (r&0xFF)==PT_DMND)
|
if (!r || (r&0xFF)==PT_DEST || (r&0xFF)==PT_DMND || (r&0xFF)==PT_BCLN || (r&0xFF)==PT_CLNE || (r&0xFF)==PT_PCLN || (r&0xFF)==PT_PBCN)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (parts[i].life<=0 || parts[i].life>37)
|
if (parts[i].life<=0 || parts[i].life>37)
|
||||||
|
@@ -1189,6 +1189,10 @@ void Simulation::init_can_move()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
can_move[PT_DEST][PT_DMND] = 0;
|
can_move[PT_DEST][PT_DMND] = 0;
|
||||||
|
can_move[PT_DEST][PT_CLNE] = 0;
|
||||||
|
can_move[PT_DEST][PT_PCLN] = 0;
|
||||||
|
can_move[PT_DEST][PT_BCLN] = 0;
|
||||||
|
can_move[PT_DEST][PT_PBCN] = 0;
|
||||||
can_move[PT_BIZR][PT_FILT] = 2;
|
can_move[PT_BIZR][PT_FILT] = 2;
|
||||||
can_move[PT_BIZRG][PT_FILT] = 2;
|
can_move[PT_BIZRG][PT_FILT] = 2;
|
||||||
for (t=0;t<PT_NUM;t++)
|
for (t=0;t<PT_NUM;t++)
|
||||||
|
Reference in New Issue
Block a user