diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-14 09:36:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-14 09:36:26 +0000 |
commit | c9f1bcb974a7d8ceb006498084ca44ea0be71ab6 (patch) | |
tree | 6bcc964e24321b268f0b92526ac9906b27007a43 /src/game | |
parent | 3a3ba622dbf9c035b0f26979601b2d4d192b4167 (diff) |
adds a buy sound when the player purchases a ship
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game.cc b/src/game/game.cc index 8054773..50ac3ec 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -37,6 +37,7 @@ void func_join(core::Player *player, std::string const &args) player->player_control = new Ship(player, default_shipmodel); player->control()->entity_color = player->color(); + core::server()->send_sound(player, "game/buy-ship"); std::string message("^B"); message.append(player->name()); @@ -99,6 +100,7 @@ void func_buy(core::Player *player, std::string const &args) player->control()->entity_color = player->color(); core::server()->broadcast("^B" + player->name() + " ^Bpurchased " + aux::article(shipmodel->name())); + core::server()->send_sound(player, "game/buy-ship"); player->player_dirty = true; } else { core::server()->send(player, "Usage: buy [^B" + helpstr + "^N]"); |