mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 13:40:12 +02:00
fix newtonian gravity state transitions flashing
This commit is contained in:
@@ -4107,7 +4107,7 @@ void Simulation::UpdateParticles(int start, int end)
|
|||||||
else s = 0;
|
else s = 0;
|
||||||
}
|
}
|
||||||
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
|
// particle type change due to low pressure
|
||||||
if (elements[t].LowPressureTransition!=PT_NUM)
|
if (elements[t].LowPressureTransition!=PT_NUM)
|
||||||
t = elements[t].LowPressureTransition;
|
t = elements[t].LowPressureTransition;
|
||||||
|
Reference in New Issue
Block a user