autoload.c
gurba-0.40/lib/std/autoload.c · 496 B
From the archive gurba.tgz
Download the archive « Back to the archive contents
void clone_autoload_objects(string str) {
string file, argument, rest;
object ob;
while(str && str != "*^!") {
if (sscanf(str, "%s:%s^!%s", file, argument, rest) != 3) {
write("Autoload string corrupt.\n");
return;
}
str = rest;
/* ob = find_object(file);
if (!ob)
continue; */
ob = clone_object(file);
if (argument) {
ob->initialize_autoload(argument);
}
ob->move( this_player() );
}
}