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:
Tamás Bálint Misius 2024-08-13 20:38:59 +02:00
parent 2d03fb4b56
commit 8e03c97b60
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

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;