Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/buymenu.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/buymenu.cc b/src/client/buymenu.cc
index 857e663..c81d80f 100644
--- a/src/client/buymenu.cc
+++ b/src/client/buymenu.cc
@@ -105,13 +105,24 @@ void BuyMenu::set_item(core::Info *info)
menu_buybutton->set_label("buy " + menu_inforecord->type()->label() + ' ' + menu_inforecord->label());
menu_modelview->show();
-
+
+ /*
+ * NOTE
+ *
+ * client-side is only aware of the price of the item/ship but has no knowledge of any potential refunds
+ * made by the game-side buy function (see game::base::Game::func_buy)
+ * The buy button is always shown, and game-side should send messageboxes where approriate.
+ * */
+ menu_buybutton->show();
+ /*
if (core::localplayer()->credits() < menu_inforecord->price()) {
menu_msgtext->set_text("^1Not enough credits");
menu_msgtext->show();
} else {
menu_buybutton->show();
}
+ */
+
}
menu_infotimestamp = menu_inforecord->timestamp();