From c62fe609a69058e2e30f757e9a06f72a98464232 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 17 Sep 2010 15:19:34 +0000 Subject: Bump network protocol version to 19, menudescriptions use the info infrastructure, client-side lazy info update requests. Updated ROADMAP --- src/game/base/game.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 729e4f8..1d4536a 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -748,8 +748,10 @@ bool Game::load_menus(core::Entity *entity, const std::string &menufilename) if (model) { button = new ButtonDescription(); button->set_text("buy " + model->name()); - button->set_command("buy ship " + model->label(), ButtonDescription::CommandMenu); - button->set_modelname(model->modelname()); + std::ostringstream str(""); + str << "buy " << model->id(); + button->set_command(str.str() , ButtonDescription::CommandMenu); + button->set_info(model); button->set_alignment(ButtonDescription::Left); menu_dealer->add_button(button); } -- cgit v1.2.3