diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-25 12:13:56 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-25 12:13:56 +0000 |
commit | bfa10f9990a8a045b03474d11af75984c12a856a (patch) | |
tree | 87ff30329be78b8012d545b097b669b746ab0fc0 /src/game/base/ship.cc | |
parent | 164e3c5b1cd9e6d6f7ca26964df4c54394eb1c84 (diff) |
Improved list_zone, list_ships
Ship price and cargo size
Diffstat (limited to 'src/game/base/ship.cc')
-rw-r--r-- | src/game/base/ship.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index d0bea4a..c48bf7a 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -122,18 +122,14 @@ void Ship::func_jump(std::string const &args) // devel mode provides instant jump access to arbitrary systems if (Game::g_devel->value() && (args.size())) { - core::Zone *jumptargetzone = 0; - std::string target(args); + core::Zone *jumptargetzone = core::Zone::search(args); - aux::to_lowercase(target); - jumptargetzone = core::Zone::find_zone(target); if (!jumptargetzone) { std::string helpstr; for (core::Zone::Registry::iterator it = core::Zone::registry().begin(); it != core::Zone::registry().end(); it++) { - core::Zone *zone = (*it).second; if (helpstr.size()) helpstr.append("^N|^B"); - helpstr.append(zone->label()); + helpstr.append((*it).second->label()); } owner()->send("Usage: jump [^B" + helpstr + "^N]"); return; |