summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 14:29:05 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 14:29:05 +0000
commit292f3e50a59b06bf129893b352466d7d54fa3d71 (patch)
tree7150b66c08c3dd83e79baef52332922ba3ab324d /src/engine.cpp
parent0c90838cef0d75e14097dc66c6b5210eef976029 (diff)
downloadmana-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.gz
mana-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.bz2
mana-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.xz
mana-292f3e50a59b06bf129893b352466d7d54fa3d71.zip
Fixed selection of player character and implemented sending of game and chat
server tokens. It gets you in the game (or what's left of it), but not on any map yet.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 84574b26..77f7f8ac 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -194,6 +194,13 @@ void Engine::draw(Graphics *graphics)
mCurrentMap->draw(graphics, map_x, map_y, 1);
mCurrentMap->draw(graphics, map_x, map_y, 2);
}
+ else
+ {
+ // When no map is loaded, draw a replacement background
+ graphics->setColor(gcn::Color(128, 128, 128));
+ graphics->fillRectangle(gcn::Rectangle(0, 0,
+ graphics->getWidth(), graphics->getHeight()));
+ }
// Find a path from the player to the mouse, and draw it. This is for debug
// purposes.