mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix can_move being set up too early
As in, before element properties were populated. This broke everything that depended on can_move, probably most notably particle displacement based on the Weight property. It didn't help that once element properties were populated, any secondary call to init_can_move would fix the symptoms, such as when any custom element is added with Lua.
This commit is contained in:
@@ -333,9 +333,9 @@ int SimulationData::GetParticleType(ByteString type) const
|
||||
|
||||
SimulationData::SimulationData()
|
||||
{
|
||||
init_can_move();
|
||||
msections = LoadMenus();
|
||||
wtypes = LoadWalls();
|
||||
elements = GetElements();
|
||||
tools = GetTools();
|
||||
init_can_move();
|
||||
}
|
||||
|
Reference in New Issue
Block a user