Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-03 19:16:26 +0000
committerStijn Buys <ingar@osirion.org>2008-03-03 19:16:26 +0000
commitc326c5d31e710cd22f4d5047252da2bfc77da1f1 (patch)
tree3ed7bde5050898e27668fffe81f7b541a94a9268 /src/game
parent75e52044c47d39d20c98e2cdc284a41d1974346a (diff)
fixes two network play bugs
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cc6
1 files changed, 3 insertions, 3 deletions
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 <micron_vector|canasta>");
+ player->player_dirty = true;
+ } else {
+ core::server()->send(player, "Usage: buy <canasta|micron_vector>");
}
}
/*----- Game ------------------------------------------------------ */