diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-10 17:19:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-01-10 17:20:33 +0100 |
commit | f5a394a5051384a930d635da22ccafc6beb1cb84 (patch) | |
tree | d28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/gui/viewport.cpp | |
parent | 5757066312cab082378dbc5d8df97dea3fe40af0 (diff) | |
download | mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2 mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.zip |
Change code style
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index dc4b9721..e8a0e260 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -192,7 +192,8 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) { mMap->draw(graphics, (int) mPixelViewX, (int) mPixelViewY); - if (mShowDebugPath) { + if (mShowDebugPath) + { mMap->drawCollision(graphics, (int) mPixelViewX, (int) mPixelViewY, @@ -376,7 +377,8 @@ void Viewport::mousePressed(gcn::MouseEvent &event) break; } // Picks up a item if we clicked on one - } else if ((item = floorItemManager->findByCoordinates(tilex, tiley))) + } + else if ((item = floorItemManager->findByCoordinates(tilex, tiley))) { player_node->pickUp(item); } @@ -452,9 +454,8 @@ void Viewport::optionChanged(const std::string &name) mScrollLaziness = (int) config.getValue("ScrollLaziness", 32); mScrollRadius = (int) config.getValue("ScrollRadius", 32); - if (name == "visiblenames") { + if (name == "visiblenames") mVisibleNames = config.getValue("visiblenames", 1); - } } void Viewport::mouseMoved(gcn::MouseEvent &event) |