summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-01 21:29:29 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-01 21:29:29 +0000
commit3f269783757f78d46d3b864ba6794401c42f4760 (patch)
treea1ccc742b9c91973464765920d06d1e9dd4045f1 /src/main.cpp
parent75feac69e27648fb50142756651270891c492537 (diff)
downloadmana-3f269783757f78d46d3b864ba6794401c42f4760.tar.gz
mana-3f269783757f78d46d3b864ba6794401c42f4760.tar.bz2
mana-3f269783757f78d46d3b864ba6794401c42f4760.tar.xz
mana-3f269783757f78d46d3b864ba6794401c42f4760.zip
Created a Game class.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 28502b5e..0ea554bf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -501,6 +501,7 @@ int main(int argc, char *argv[])
Window *currentDialog = NULL;
Image *login_wallpaper = NULL;
+ Game *game = NULL;
sound.playMusic(TMW_DATADIR "data/music/Magick - Real.ogg");
@@ -620,9 +621,9 @@ int main(int argc, char *argv[])
login_wallpaper = NULL;
logger->log("State: GAME");
- do_init(network);
- game(network);
- do_exit();
+ game = new Game(network);
+ game->logic();
+ delete game;
state = EXIT_STATE;
break;