mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user