summaryrefslogtreecommitdiff
path: root/src/graphics/Renderer.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-05-11 10:52:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-05-11 10:52:35 (GMT)
commitc2cdec9e621a2af25a256a484fdf68adc46ea96f (patch)
tree69aee231e52e8ef85842b6b695c10f6f04aa4b25 /src/graphics/Renderer.cpp
parentd1c8978a34906c1adb6bdc3fbae7f12c06aa8324 (diff)
downloadpowder-c2cdec9e621a2af25a256a484fdf68adc46ea96f.zip
powder-c2cdec9e621a2af25a256a484fdf68adc46ea96f.tar.gz
Togglable lua scripting
Diffstat (limited to 'src/graphics/Renderer.cpp')
-rw-r--r--src/graphics/Renderer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp
index a3ea66d..dfdd307 100644
--- a/src/graphics/Renderer.cpp
+++ b/src/graphics/Renderer.cpp
@@ -9,8 +9,10 @@
#include "simulation/Elements.h"
#include "simulation/ElementGraphics.h"
#include "simulation/Air.h"
+#ifdef LUACONSOLE
#include "cat/LuaScriptInterface.h"
#include "cat/LuaScriptHelper.h"
+#endif
extern "C"
{
#include "hmap.h"
@@ -1212,7 +1214,7 @@ void Renderer::render_parts()
{
if (elements[t].Graphics)
{
-#ifndef RENDERER
+#if !defined(RENDERER) && defined(LUACONSOLE)
if (lua_gr_func[t])
{
luacon_graphicsReplacement(this, &(sim->parts[i]), nx, ny, &pixel_mode, &cola, &colr, &colg, &colb, &firea, &firer, &fireg, &fireb, i);