summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-01 14:38:59 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-01 14:38:59 +0000
commit3d85803d9a43c779f522a936df068a24ca6f7f2d (patch)
tree1c84a78bb39e1a282c0b7e194c0fed16c510ba8a
parentf6f8b2f885145d4cacf7a6c42d88b6a39f71b366 (diff)
downloadmana-client-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.gz
mana-client-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.bz2
mana-client-3d85803d9a43c779f522a936df068a24ca6f7f2d.tar.xz
mana-client-3d85803d9a43c779f522a936df068a24ca6f7f2d.zip
Merged revisions 4110-4111,4116 via svnmerge from
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r4110 | peaveydk | 2008-04-17 00:57:49 +0200 (Thu, 17 Apr 2008) | 1 line Fix shop list not to scroll to top when selling. Redo of revision 3801 due to changes in guichan 0.8.0. ........ r4111 | peaveydk | 2008-04-17 02:08:28 +0200 (Thu, 17 Apr 2008) | 1 line fixes for r4110, have to account for index value and add 1 to get the right scroll position. ........ r4116 | peaveydk | 2008-04-17 14:48:43 +0200 (Thu, 17 Apr 2008) | 1 line Draw NPCs in yellow on minimap and skip drawing of warps. Based on idea by leeor_net. ........
-rw-r--r--ChangeLog7
-rw-r--r--src/gui/minimap.cpp7
-rw-r--r--src/gui/sell.cpp5
3 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 16d50f6b..d7e5d07b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -586,6 +586,13 @@
src/net/chatserver/party.h, src/localplayer.h: Added basic party
support.
+2008-04-17 Dennis Friis <peavey@placid.dk>
+
+ * src/gui/sell.cpp: Fix shop list not to scroll to top when selling.
+ Redo of revision 3801 due to changes in guichan 0.8.0.
+ * src/gui/minimap.cpp: Draw NPCs in yellow on minimap and skip drawing
+ of warps. Based on idea by leeor_net.
+
2008-04-17 Yohann Ferreira <bertram@cegetel.net>
* src/gui/progressbar.h, src/gui/progressbar.cpp: Added smooth
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index ca6f4fd7..5f768609 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -77,9 +77,10 @@ void Minimap::draw(gcn::Graphics *graphics)
{
Window::draw(graphics);
- if (mMapImage != NULL)
+ if (mMapImage)
{
- static_cast<Graphics*>(graphics)->drawImage(mMapImage, getPadding(), getTitleBarHeight());
+ static_cast<Graphics*>(graphics)->drawImage(
+ mMapImage, getPadding(), getTitleBarHeight());
}
Beings &beings = beingManager->getAll();
@@ -110,7 +111,7 @@ void Minimap::draw(gcn::Graphics *graphics)
break;
default:
- break;
+ continue;
}
const int offset = (dotSize - 1) / 2;
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index e101ad39..37626155 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -171,6 +171,11 @@ void SellDialog::action(const gcn::ActionEvent &event)
mShopItemList->setSelected(-1);
mShopItems->getShop()->erase(
mShopItems->getShop()->begin() + selectedItem);
+
+ gcn::Rectangle scroll;
+ scroll.y = mShopItemList->getRowHeight() * (selectedItem + 1);
+ scroll.height = mShopItemList->getRowHeight();
+ mShopItemList->showPart(scroll);
}
else
{