mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-22 15:19:52 +01:00
minor gravity transition fix
This commit is contained in:
parent
55b31d6f0e
commit
1dd4b00ec6
@ -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 && gravtot<(elements[t].LowPressure/4.0f)) {
|
||||
} 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