Fix compilation with LUACONSOLE turned off

This commit is contained in:
jacob1 2022-12-19 22:45:08 -05:00
parent 63661a752c
commit 1c459a7e1a
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -4988,7 +4988,9 @@ void Simulation::BeforeSim()
{
if (!sys_pause||framerender)
{
#ifdef LUACONSOLE
luacon_ci->HandleEvent(LuaEvents::beforesim, new BeforeSimEvent());
#endif
air->update_air();
@ -5189,7 +5191,9 @@ void Simulation::AfterSim()
emp_trigger_count = 0;
}
#ifdef LUACONSOLE
luacon_ci->HandleEvent(LuaEvents::aftersim, new AfterSimEvent());
#endif
}
Simulation::~Simulation()