summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-02-27 16:39:17 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-02-27 16:39:17 +0000
commit7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9 (patch)
treea880298777fcbb47a897e45ce6344ddbdf61b210 /src/game.cpp
parentec72908d291fff37486a70d1624cfcece23b9bf7 (diff)
downloadmana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.gz
mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.bz2
mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.xz
mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.zip
Implementation of chat channels by Trapdoor.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9eaa0693..ba4e2b9d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -32,6 +32,7 @@
#include <guichan/exception.hpp>
#include "beingmanager.h"
+#include "channelmanager.h"
#include "configuration.h"
#include "engine.h"
#include "flooritemmanager.h"
@@ -118,6 +119,7 @@ DebugWindow *debugWindow;
BeingManager *beingManager = NULL;
FloorItemManager *floorItemManager = NULL;
+ChannelManager *channelManager = NULL;
const int MAX_TIME = 10000;
@@ -238,6 +240,7 @@ Game::Game():
beingManager = new BeingManager;
floorItemManager = new FloorItemManager();
+ channelManager = new ChannelManager();
// Initialize timers
tick_time = 0;
@@ -281,6 +284,7 @@ Game::~Game()
delete beingManager;
delete floorItemManager;
+ delete channelManager;
delete joystick;
beingManager = NULL;
@@ -303,7 +307,7 @@ bool saveScreenshot(SDL_Surface *screenshot)
do {
screenshotCount++;
filename.str("");
-#if (defined __USE_UNIX98 || defined __FreeBSD__)
+#if (defined __USE_UNIX98 || defined __FreeBSD__ || defined __APPLE__)
filename << PHYSFS_getUserDir() << "/";
#endif
filename << "TMW_Screenshot_" << screenshotCount << ".png";