]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Ensure the map editor can be compiled.
authorGuus Sliepen <guus@debian.org>
Wed, 23 Dec 2009 22:21:31 +0000 (23:21 +0100)
committerGuus Sliepen <guus@debian.org>
Wed, 23 Dec 2009 22:21:31 +0000 (23:21 +0100)
src/mapEditor.cpp

index 58104197977899c1a01e0d79c9a85e2f5cddaf84..e8096dec44a725b9fe008bdc71cdf045a061053e 100644 (file)
@@ -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();