mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-23 08:14:51 +02:00
Fix broken gravity walls
They stopped working because 7e9d9686dda4 accidentally had BeforeSim reset the gravity mask also, not just the gravity mass from the previous frame.
This commit is contained in:
parent
2d03fb4b56
commit
8e03c97b60
@ -3755,7 +3755,10 @@ void Simulation::BeforeSim()
|
||||
air->update_airh();
|
||||
|
||||
DispatchNewtonianGravity();
|
||||
gravIn = {};
|
||||
for (auto p : gravIn.mass.Size().OriginRect())
|
||||
{
|
||||
gravIn.mass[p] = 0.f;
|
||||
}
|
||||
|
||||
if(emp_decor>0)
|
||||
emp_decor -= emp_decor/25+2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user