diff options
Diffstat (limited to 'src/client/trademenu.cc')
-rw-r--r-- | src/client/trademenu.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc index f0030f5..3c0847a 100644 --- a/src/client/trademenu.cc +++ b/src/client/trademenu.cc @@ -348,8 +348,12 @@ void TradeMenu::draw() set_itemtype(menu_itemtype); } + + std::stringstream creditstr; + creditstr << core::localplayer()->credits(); + std::stringstream str; - str << "Credits: " << std::setw(12) << core::localplayer()->credits(); + str << "Credits: " << aux::pad_left(creditstr.str(),12); if (core::localcontrol() && core::localcontrol()->inventory()) { core::Inventory *inventory = core::localcontrol()->inventory(); |