summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-16 21:29:31 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-16 21:29:31 +0200
commit26a4845a995065f0ed24ef0e21e4c9bf44cef002 (patch)
tree56037a87d24a4162698fca4d7180b0c996c4ee46 /src/Simulator/IncrementalRedstoneSimulator.cpp
parentDon't include IncrementalRedsonteSimulator.inc when in SELF_TEST mode (diff)
downloadcuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar.gz
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar.bz2
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar.lz
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar.xz
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.tar.zst
cuberite-26a4845a995065f0ed24ef0e21e4c9bf44cef002.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index 515d72457..55cc014f3 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -1,9 +1,6 @@
#include "Globals.h"
-#ifndef SELF_TEST
-
-#include "IncrementalRedstoneSimulator.h"
#include "IncrementalRedstoneSimulator.inc"
@@ -18,6 +15,8 @@
#include "Blocks/BlockPiston.h"
#include "BlockEntities/ChestEntity.h"
-#pragma clang diagnostic ignored "-Wweak-template-vtables"
-template class cIncrementalRedstoneSimulator<cChunk, cWorld, GetHandlerCompileTime, cChestEntity>;
-#endif
+cRedstoneSimulator<cChunk, cWorld> * MakeIncrementalRedstoneSimulator(cWorld & a_World)
+{
+ return new cIncrementalRedstoneSimulator<cChunk, cWorld, GetHandlerCompileTime, cChestEntity>(a_World);
+}
+