From 1c459a7e1aebbc3a0310834834d44197a21d6ff0 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 19 Dec 2022 22:45:08 -0500 Subject: [PATCH] Fix compilation with LUACONSOLE turned off --- src/simulation/Simulation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index a38e829d1..b75891b40 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -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()