From 1f002e6ff7a1e27cbb69cea36abad674b3e554d0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 29 Jun 2010 00:05:43 +0200 Subject: [PATCH] Ensure the map editor can be compiled. Reapplication of commit c51320ee6a6c728224ee85a4d9fd6fe22044d48c. --- src/mapEditor.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mapEditor.cpp b/src/mapEditor.cpp index fb00004..0377156 100644 --- a/src/mapEditor.cpp +++ b/src/mapEditor.cpp @@ -20,6 +20,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "mapEditor.h" +Config config; +ReplayData replayData; + void drawMap(int mapX, int mapY) { SDL_Rect r; @@ -431,6 +434,10 @@ int main(int argc, char *argv[]) exit(1); } + config.engine = &engine; + + replayData.reset(); + atexit(cleanup); engine.useAudio = 0; @@ -469,7 +476,7 @@ int main(int argc, char *argv[]) { engine.getInput(); config.populate(); - engine.doPause(); + config.doPause(); engine.doFrameLoop(); graphics.updateScreen(); -- 2.39.5