From c326c5d31e710cd22f4d5047252da2bfc77da1f1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 3 Mar 2008 19:16:26 +0000 Subject: fixes two network play bugs --- src/game/game.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game') diff --git a/src/game/game.cc b/src/game/game.cc index 7dc342a..da8ef2e 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -73,9 +73,9 @@ void func_buy(core::Player *player, std::string const &args) player->control()->entity_color = player->color(); core::server()->broadcast(player->name() + " purchased a " + shipname); - } - if (!shipname.size()) { - core::server()->send(player, "Usage: buy "); + player->player_dirty = true; + } else { + core::server()->send(player, "Usage: buy "); } } /*----- Game ------------------------------------------------------ */ -- cgit v1.2.3