mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-21 23:00:03 +01:00
fix newtonian gravity state transitions flashing
This commit is contained in:
parent
fd91fa4438
commit
6fca44fd70
@ -4107,7 +4107,7 @@ void Simulation::UpdateParticles(int start, int end)
|
||||
else s = 0;
|
||||
}
|
||||
else s = 0;
|
||||
} else if (elements[t].LowPressureTransition>-1 && pv[y/CELL][x/CELL]<elements[t].LowPressure) {
|
||||
} else if (elements[t].LowPressureTransition>-1 && pv[y/CELL][x/CELL]<elements[t].LowPressure && gravtot<(elements[t].LowPressure/4.0f)) {
|
||||
// particle type change due to low pressure
|
||||
if (elements[t].LowPressureTransition!=PT_NUM)
|
||||
t = elements[t].LowPressureTransition;
|
||||
|
Loading…
x
Reference in New Issue
Block a user