Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1376 → Rev 1375

/demos/trunk/astro/astro.c
373,9 → 373,8
soft_task_def_usemath(ms);
pid = task_create("Astro", astro, &ms, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <astro>\n");
perror("Could not create task <astro>");
shark_running = 0;
return;
} else
task_activate(pid);
 
386,9 → 385,8
hard_task_def_usemath(mp);
pid = task_create("Taken", look, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Taken>\n");
perror("Could not create task <Taken>");
shark_running = 0;
return;
} else
task_activate(pid);
 
402,9 → 400,8
hard_task_def_usemath(mp);
pid_TL = task_create("TurnLeft", turn, &mp, NULL);
if (pid_TL == NIL) {
sys_shutdown_message("Could not create task <Turn L>\n");
perror("Could not create task <Turn L>");
shark_running = 0;
return;
}
 
incr = - ASTRO_GRAD_INC;
417,9 → 414,8
hard_task_def_usemath(mp);
pid_TR = task_create("TurnRight", turn, &mp, NULL);
if (pid_TR == NIL) {
sys_shutdown_message("Could not create task <Turn R>\n");
perror("Could not create task <Turn R>");
shark_running = 0;
return;
}
 
incr = ASTRO_VEL_INC;
432,9 → 428,8
hard_task_def_usemath(mp);
pid_SU = task_create("SpeedUP", speed, &mp, NULL);
if (pid_SU == NIL) {
sys_shutdown_message("Could not create task <Speed UP>\n");
perror("Could not create task <Speed UP>");
shark_running = 0;
return;
}
 
incr = - ASTRO_VEL_INC;
447,9 → 442,8
hard_task_def_usemath(mp);
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL);
if (pid_SD == NIL) {
sys_shutdown_message("Could not create task <Speed DOWN>\n");
perror("Could not create task <Speed DOWN>");
shark_running = 0;
return;
}
 
incr = 0;
462,9 → 456,8
hard_task_def_usemath(mp);
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL);
if (pid_SZ == NIL) {
sys_shutdown_message("Could not create task <Speed ZERO>\n");
perror("Could not create task <Speed ZERO>");
shark_running = 0;
return;
}
 
hard_task_default_model(mp);
474,9 → 467,8
hard_task_def_usemath(mp);
pid = task_create("MoveAstro", move, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <MoveAstro>\n");
perror("Could not create task <MoveAstro>");
shark_running = 0;
return;
} else
task_activate(pid);
 
491,9 → 483,8
hard_task_def_usemath(mp);
pid_FL = task_create("FlipAstro", turn, &mp, NULL);
if (pid_FL == NIL) {
sys_shutdown_message("Could not create task <Flip Astro>\n");
perror("Could not create task <Flip Astro>");
shark_running = 0;
return;
}
#endif
}