diff options
| author | Simon 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) |
| commit | c2cdec9e621a2af25a256a484fdf68adc46ea96f (patch) | |
| tree | 69aee231e52e8ef85842b6b695c10f6f04aa4b25 /src/graphics | |
| parent | d1c8978a34906c1adb6bdc3fbae7f12c06aa8324 (diff) | |
| download | powder-c2cdec9e621a2af25a256a484fdf68adc46ea96f.zip powder-c2cdec9e621a2af25a256a484fdf68adc46ea96f.tar.gz | |
Togglable lua scripting
Diffstat (limited to 'src/graphics')
| -rw-r--r-- | src/graphics/Renderer.cpp | 4 |
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); |
