Fix origin command not to prompt twice for its argument
Broken in commit b69173ee
, v4.3.0.
This commit is contained in:
parent
db031971aa
commit
27c3466aa5
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ orig(void)
|
||||||
struct natstr *np;
|
struct natstr *np;
|
||||||
|
|
||||||
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
|
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
|
||||||
if (!p)
|
if (!p || !*p)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (!isalpha(*p) && strchr(p, ',')) {
|
if (!isalpha(*p) && strchr(p, ',')) {
|
||||||
/* sector */
|
/* sector */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue