From ac26aee2b567865404e2b5fb9964dae9b1af6679 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 2 Dec 2012 22:10:24 +0000 Subject: Added inventory mount indicator. --- src/game/base/game.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/base') diff --git a/src/game/base/game.cc b/src/game/base/game.cc index e9ea476..db03e4e 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -1229,7 +1229,9 @@ void Game::func_mount(core::Player *player, const std::string &args) slot->set_item(0); slot->unset_flag(core::Slot::Active); slot->unset_flag(core::Slot::Mounted); - item->unset_flag(core::Item::Mounted); + item->unset_flag(core::Item::Mounted); + + ship->inventory()->set_dirty(); if (ship->owner()) { std::stringstream msgstr; msgstr << "^BUnmounted " << weapon->name(); @@ -1259,6 +1261,8 @@ void Game::func_mount(core::Player *player, const std::string &args) slot->set_flag(core::Slot::Active); slot->set_flag(core::Slot::Mounted); item->set_flag(core::Item::Mounted); + + ship->inventory()->set_dirty(); if (ship->owner()) { std::stringstream msgstr; msgstr << "^BMounted " << weapon->name(); -- cgit v1.2.3