chiark
/
gitweb
/
~ijackson
/
trains.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixes during movpos wip
[trains.git]
/
hostside
/
commands.c
diff --git
a/hostside/commands.c
b/hostside/commands.c
index 55fcc3b770aff042803b8d750a0c15185aec466a..1c9953ae156a4f28ffbc0e17fe2d29f374d82014 100644
(file)
--- a/
hostside/commands.c
+++ b/
hostside/commands.c
@@
-203,11
+203,13
@@
static void cmd_movfeat(ParseState *ps, const CmdInfo *ci) {
if (!ps_neednoargs(ps)) return;
ec= movpos_change(back,move,fwd,ms,0);
- if (ec)
+ if (ec)
{
badcmd(ps,"movfeat %s %s %s %ld %s",
back->i->pname, move->i->pname, fwd->i->pname,
ms==INT_MAX ? -1L : ms,
errorcodelist[ec]);
+ return;
+ }
ouack(ci);
}