xgo.c
gurba-0.40/lib/cmds/player/xgo.c · 420 B
From the archive gurba.tgz
Download the archive « Back to the archive contents
void main( string dir1, string dir2, string dir3 ) {
string error;
if( dir3 ) {
error = this_environment()->body_exit( this_player(), dir1+" "+dir2+" "+dir3 );
}
else if( dir2 ) {
error = this_environment()->body_exit( this_player(), dir1+" "+dir2 );
}
else {
error = this_environment()->body_exit( this_player(), dir1 );
}
if( error != 0 ) {
write( error );
}
}