Fix TNT not exploding if multiple TNT particles are in the same place
flood_prop only changes the tmp value of one TNT particle at each coordinate. So some TNT particles can retain tmp=1 and keep running flood_prop, stopping the TNT from exploding.
This commit is contained in:
parent
befd4f5ef5
commit
de6203e049
@ -44,6 +44,7 @@ int update_BANG(UPDATE_FUNC_ARGS) {
|
||||
{
|
||||
int tempvalue = 2;
|
||||
flood_prop(x, y, offsetof(particle, tmp), &tempvalue, 0);
|
||||
parts[i].tmp = 2;
|
||||
}
|
||||
else if(parts[i].tmp==2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user