Photons and neutrons through portal
This commit is contained in:
parent
466a6b2ccb
commit
1c771d1ea4
@ -23,9 +23,16 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
|
||||
count ++;
|
||||
if (!r)
|
||||
fe = 1;
|
||||
if ((r>>8)>=NPART || !r)
|
||||
if ((r>>8)>=NPART)
|
||||
continue;
|
||||
if ((r&0xFF)==PT_SPRK || ((r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (ptypes[r&0xFF].falldown!= 0 || ptypes[r&0xFF].state == ST_GAS)))
|
||||
if (!r || (r&0xFF)==PT_PRTI || (r&0xFF)==PT_PRTO || (ptypes[r&0xFF].falldown== 0 && ptypes[r&0xFF].state != ST_GAS && (r&0xFF)!=PT_SPRK))
|
||||
{
|
||||
r = photons[y+ry][x+rx];
|
||||
if ((r>>8)>=NPART)
|
||||
continue;
|
||||
if (!r || (r&0xFF)==PT_PRTI || (r&0xFF)==PT_PRTO || (ptypes[r&0xFF].falldown== 0 && ptypes[r&0xFF].state != ST_GAS && (r&0xFF)!=PT_SPRK))
|
||||
continue;
|
||||
}
|
||||
for ( nnx=0; nnx<80; nnx++)
|
||||
if (!portal[parts[i].tmp][count-1][nnx])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user