From e4f2faa8d5895ba30207c09c7886afb21a697d5f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 12 May 2008 13:08:45 +0000 Subject: aux::plural, aux::article --- src/game/game.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/game') diff --git a/src/game/game.cc b/src/game/game.cc index 3bdcb8e..8b70958 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -6,14 +6,16 @@ #include +#include "auxiliary/functions.h" +#include "core/gameserver.h" +#include "filesystem/filesystem.h" +#include "filesystem/inifile.h" #include "game/game.h" #include "game/ship.h" #include "game/star.h" -#include "core/gameserver.h" -#include "sys/sys.h" #include "math/mathlib.h" -#include "filesystem/filesystem.h" -#include "filesystem/inifile.h" +#include "sys/sys.h" + namespace game { @@ -92,7 +94,7 @@ void func_buy(core::Player *player, std::string const &args) player->player_control = new Ship(player, shipmodel); player->control()->entity_color = player->color(); - core::server()->broadcast(player->name() + " purchased a " + shipmodel->name()); + core::server()->broadcast(player->name() + " purchased " + aux::article(shipmodel->name())); player->player_dirty = true; } else { core::server()->send(player, "Usage: buy <" + helpstr + ">"); -- cgit v1.2.3