movfeat++ <as above> } see route++
!movfeat } see !route
- direction forwards|backwards|change <train>
+ direction <train> forwards|backwards|change
DIRECT NMRA AND PIC INSTRUCTIONS
Train *tra;
int backwards;
+ MUSTECR( ps_needtrain(ps,&tra) );
+
MUSTECR( ps_needword(ps) );
if (!thiswordstrcmp(ps,"forwards")) backwards= 0;
else if (!thiswordstrcmp(ps,"backwards")) backwards= 1;
else if (!thiswordstrcmp(ps,"change")) backwards= !tra->backwards;
else return badcmd(ps, "direction must be forwards|backwards|change");
- MUSTECR( ps_needtrain(ps,&tra) );
MUSTECR( ps_neednoargs(ps) );
MUSTECRPREDICT( safety_setdirection(tra,backwards,CMDPPC) );