mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 10:54:15 +02:00
Fix compilation with LUACONSOLE turned off
This commit is contained in:
@@ -4988,7 +4988,9 @@ void Simulation::BeforeSim()
|
|||||||
{
|
{
|
||||||
if (!sys_pause||framerender)
|
if (!sys_pause||framerender)
|
||||||
{
|
{
|
||||||
|
#ifdef LUACONSOLE
|
||||||
luacon_ci->HandleEvent(LuaEvents::beforesim, new BeforeSimEvent());
|
luacon_ci->HandleEvent(LuaEvents::beforesim, new BeforeSimEvent());
|
||||||
|
#endif
|
||||||
|
|
||||||
air->update_air();
|
air->update_air();
|
||||||
|
|
||||||
@@ -5189,7 +5191,9 @@ void Simulation::AfterSim()
|
|||||||
emp_trigger_count = 0;
|
emp_trigger_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LUACONSOLE
|
||||||
luacon_ci->HandleEvent(LuaEvents::aftersim, new AfterSimEvent());
|
luacon_ci->HandleEvent(LuaEvents::aftersim, new AfterSimEvent());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Simulation::~Simulation()
|
Simulation::~Simulation()
|
||||||
|
Reference in New Issue
Block a user