]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Ensure the map editor can be compiled.
authorGuus Sliepen <guus@debian.org>
Mon, 28 Jun 2010 22:05:43 +0000 (00:05 +0200)
committerGuus Sliepen <guus@debian.org>
Mon, 28 Jun 2010 22:05:43 +0000 (00:05 +0200)
Reapplication of commit c51320ee6a6c728224ee85a4d9fd6fe22044d48c.

src/mapEditor.cpp

index fb0000425356e2c2aafe9eac5b047ed83f9db390..037715620c4b3e26549f39ac806758a640a4e549 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();