Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1375 → Rev 1376

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