summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-05-23 20:14:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-05-23 20:14:14 +0000
commitc61786006bf7694f532c77d038fc2cfd8a44b551 (patch)
tree130063591c791b70dc426f3d3294c615ad0d7ef5 /src/gui/buy.cpp
parent2d40625bd3229a6d9a6a859296d204a9816fc1fd (diff)
downloadmana-client-c61786006bf7694f532c77d038fc2cfd8a44b551.tar.gz
mana-client-c61786006bf7694f532c77d038fc2cfd8a44b551.tar.bz2
mana-client-c61786006bf7694f532c77d038fc2cfd8a44b551.tar.xz
mana-client-c61786006bf7694f532c77d038fc2cfd8a44b551.zip
A bunch of lingering syntactical changes.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index 8b9e8d8e..edd3fe2c 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -154,7 +154,8 @@ void BuyDialog::action(const gcn::ActionEvent &event)
}
// The following actions require a valid selection
- if (selectedItem < 0 || selectedItem >= int(mShopItems->getNumberOfElements()))
+ if (selectedItem < 0 ||
+ selectedItem >= (int) mShopItems->getNumberOfElements())
{
return;
}
@@ -174,7 +175,7 @@ void BuyDialog::action(const gcn::ActionEvent &event)
mAmountItems = mMaxItems;
}
- mSlider->setValue(double(mAmountItems)/double(mMaxItems));
+ mSlider->setValue((double) mAmountItems / (double) mMaxItems);
updateButtonsAndLabels = true;
}
else if (event.getId() == "-")