mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-15 04:44:00 +02:00
Potential Fix for PSCN an A-RAY
This commit is contained in:
@@ -1841,7 +1841,8 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
parts[nr].tmp = 2;
|
parts[nr].tmp = 2;
|
||||||
parts[nr].life = 2;
|
parts[nr].life = 2;
|
||||||
}
|
}
|
||||||
} else if(parts[r>>8].type==PT_BRAY&&parts[r>>8].tmp==0&&!destroy){
|
} else if(!((r>>8)>=NPART || !r)) {
|
||||||
|
if(parts[r>>8].type==PT_BRAY&&parts[r>>8].tmp==0&&!destroy){
|
||||||
if(nyy!=0 || nxx!=0){
|
if(nyy!=0 || nxx!=0){
|
||||||
parts[r>>8].type = PT_BRAY;
|
parts[r>>8].type = PT_BRAY;
|
||||||
parts[r>>8].life = 1020;
|
parts[r>>8].life = 1020;
|
||||||
@@ -1862,6 +1863,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//parts[i].life = 4;
|
//parts[i].life = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user