diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-20 14:29:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-20 14:29:05 +0000 |
commit | 292f3e50a59b06bf129893b352466d7d54fa3d71 (patch) | |
tree | 7150b66c08c3dd83e79baef52332922ba3ab324d /src/engine.cpp | |
parent | 0c90838cef0d75e14097dc66c6b5210eef976029 (diff) | |
download | mana-client-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.gz mana-client-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.bz2 mana-client-292f3e50a59b06bf129893b352466d7d54fa3d71.tar.xz mana-client-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.cpp | 7 |
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. |