summaryrefslogtreecommitdiffstats
path: root/source/cRoot.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-16 08:47:09 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-16 08:47:09 +0200
commit1c4c0b5698984ebe4a035f6b8a291c581a9cb21e (patch)
treeae5b417cca7f33ae63263d6172b1aa49006a136c /source/cRoot.cpp
parentCompiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android! (diff)
downloadcuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.gz
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.bz2
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.lz
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.xz
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.zst
cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.zip
Diffstat (limited to '')
-rw-r--r--source/cRoot.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/cRoot.cpp b/source/cRoot.cpp
index 4d69635e2..317b03ca3 100644
--- a/source/cRoot.cpp
+++ b/source/cRoot.cpp
@@ -16,12 +16,13 @@
#include "cRedstone.h"
#include "blocks/Block.h"
#include "items/Item.h"
-#if USE_SQUIRREL
-#include "squirrelbindings/SquirrelFunctions.h"
-#include "squirrelbindings/SquirrelBindings.h"
-#endif
#include "cChunk.h"
+#ifdef USE_SQUIRREL
+ #include "squirrelbindings/SquirrelFunctions.h"
+ #include "squirrelbindings/SquirrelBindings.h"
+#endif
+
#include "../iniFile/iniFile.h"
#include <iostream>
@@ -177,7 +178,7 @@ void cRoot::Start()
delete m_PluginManager; m_PluginManager = 0; // This should be first
- #if USE_SQUIRREL
+ #ifdef USE_SQUIRREL
CloseSquirrelVM();
#endif
LOG("Freeing MonsterConfig...");