diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 12:10:34 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 12:15:50 +0100 |
commit | 38674a7732d2224e07e80c0c4224e3468e4ddfb0 (patch) | |
tree | f022f88febb3653320682452e4fc618ea60392ab /src/gui | |
parent | 06be39a51f62d365ce84d7815173577d2ecf8496 (diff) | |
download | mana-38674a7732d2224e07e80c0c4224e3468e4ddfb0.tar.gz mana-38674a7732d2224e07e80c0c4224e3468e4ddfb0.tar.bz2 mana-38674a7732d2224e07e80c0c4224e3468e4ddfb0.tar.xz mana-38674a7732d2224e07e80c0c4224e3468e4ddfb0.zip |
Moved choosing of random death message to a function
Also dynamically calculated the size of the array, so that you don't
have to count the messages manually. :P
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/buysell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp index c56f6435..b9a6a1dc 100644 --- a/src/gui/buysell.cpp +++ b/src/gui/buysell.cpp @@ -44,7 +44,8 @@ BuySellDialog::BuySellDialog(Network *network): for (const char **curBtn = buttonNames; *curBtn; curBtn++) { Button *btn = new Button(gettext(*curBtn), *curBtn, this); - if (!buyButton) buyButton = btn; // For focus request + if (!buyButton) + buyButton = btn; // For focus request btn->setPosition(x, y); add(btn); x += btn->getWidth() + 10; |