Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/entity.cc1
-rw-r--r--src/game/game.cc6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 097b322..891c758 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -122,6 +122,7 @@ Entity::Entity(std::istream & is)
while ( (is.get(c)) && (c != '"'))
n += c;
entity_name = n;
+ n.clear();
while ( (is.get(c)) && (c != '"'));
while ( (is.get(c)) && (c != '"'))
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 ------------------------------------------------------ */