diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-02 22:10:24 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-02 22:10:24 +0000 |
commit | ac26aee2b567865404e2b5fb9964dae9b1af6679 (patch) | |
tree | 20af877ef6ab93812d5cd9327e2d5473bb80d8d2 /src/game/base | |
parent | df30620c548d23fa6f7632e280093824209d917a (diff) |
Added inventory mount indicator.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |