Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-14 09:36:26 +0000
committerStijn Buys <ingar@osirion.org>2008-07-14 09:36:26 +0000
commitc9f1bcb974a7d8ceb006498084ca44ea0be71ab6 (patch)
tree6bcc964e24321b268f0b92526ac9906b27007a43 /src/game/game.cc
parent3a3ba622dbf9c035b0f26979601b2d4d192b4167 (diff)
adds a buy sound when the player purchases a ship
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc2
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]");