mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +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()
|
SimulationData::SimulationData()
|
||||||
{
|
{
|
||||||
init_can_move();
|
|
||||||
msections = LoadMenus();
|
msections = LoadMenus();
|
||||||
wtypes = LoadWalls();
|
wtypes = LoadWalls();
|
||||||
elements = GetElements();
|
elements = GetElements();
|
||||||
tools = GetTools();
|
tools = GetTools();
|
||||||
|
init_can_move();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user