DEST_ENV.C
LIB3/SECURE/MASTER/DEST_ENV.C · 496 B
From the archive nm4dos.zip
Download the archive « Back to the archive contents
/*
* Called if the environment is dested and there is no where else
* to go...
*/
void destruct_environment_of( object ob )
{
object env;
env = environment( ob );
if( env )
{
string *a;
a = (string *)env->query_dest_dir();
/* Changed by Newstyle, 07/02/94 to be more efficient */
if( !sizeof( a ) || catch( ob->move_player( a[ 0 ], a[ 1 ], "stumbles" ) ) )
ob->move_player( "void", "/room/void", "is sucked into the" );
}
} /* destruct_environment_of() */