Fix broken gravity walls

They stopped working because 7e9d9686dd accidentally had BeforeSim reset the gravity mask also, not just the gravity mass from the previous frame.
This commit is contained in:
Tamás Bálint Misius
2024-08-13 20:38:59 +02:00
parent 2d03fb4b56
commit 8e03c97b60

View File

@@ -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;