/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include "mapEditor.h"
+MedalServer medalServer;
+Config config;
+ReplayData replayData;
+
void drawMap(int mapX, int mapY)
{
SDL_Rect r;
if (!strstr(string, " ENEMY \""))
{
str = new String;
- strncpy(str->string, string, sizeof str->string);
+ strlcpy(str->string, string, sizeof str->string);
stringTail->next = str;
stringTail = str;
}
fprintf(fp, "EMH TILESET gfx/grasslands\n");
fprintf(fp, "EMH BACKGROUND gfx/grasslands/stone.jpg\n");
- fprintf(fp, "EMH MUSIC music/viking.mod\n");
+ fprintf(fp, "EMH MUSIC music/tunnel\n");
fprintf(fp, "EMH ALPHATILES 1 2 3 200 201 202 203 204 244 245 246 -1\n");
exit(1);
}
+ config.engine = &engine;
+
+ replayData.reset();
+
atexit(cleanup);
engine.useAudio = 0;
{
engine.getInput();
config.populate();
- engine.doPause();
+ config.doPause();
engine.doFrameLoop();
graphics.updateScreen();