372,8 → 372,7 |
pid = task_create("Astro", astro, &ms, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <astro>\n"); |
sys_end(); |
return; |
exit(1); |
} else |
task_activate(pid); |
|
385,8 → 384,7 |
pid = task_create("Taken", look, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <Taken>\n"); |
sys_end(); |
return; |
exit(1); |
} else |
task_activate(pid); |
|
401,8 → 399,7 |
pid_TL = task_create("TurnLeft", turn, &mp, NULL); |
if (pid_TL == NIL) { |
sys_shutdown_message("Could not create task <Turn L>\n"); |
sys_end(); |
return; |
exit(1); |
} |
|
incr = - ASTRO_GRAD_INC; |
416,8 → 413,7 |
pid_TR = task_create("TurnRight", turn, &mp, NULL); |
if (pid_TR == NIL) { |
sys_shutdown_message("Could not create task <Turn R>\n"); |
sys_end(); |
return; |
exit(1); |
} |
|
incr = ASTRO_VEL_INC; |
431,8 → 427,7 |
pid_SU = task_create("SpeedUP", speed, &mp, NULL); |
if (pid_SU == NIL) { |
sys_shutdown_message("Could not create task <Speed UP>\n"); |
sys_end(); |
return; |
exit(1); |
} |
|
incr = - ASTRO_VEL_INC; |
446,8 → 441,7 |
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL); |
if (pid_SD == NIL) { |
sys_shutdown_message("Could not create task <Speed DOWN>\n"); |
sys_end(); |
return; |
exit(1); |
} |
|
incr = 0; |
461,8 → 455,7 |
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL); |
if (pid_SZ == NIL) { |
sys_shutdown_message("Could not create task <Speed ZERO>\n"); |
sys_end(); |
return; |
exit(1); |
} |
|
hard_task_default_model(mp); |
473,8 → 466,7 |
pid = task_create("MoveAstro", move, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <MoveAstro>\n"); |
sys_end(); |
return; |
exit(1); |
} else |
task_activate(pid); |
|
490,8 → 482,7 |
pid_FL = task_create("FlipAstro", turn, &mp, NULL); |
if (pid_FL == NIL) { |
sys_shutdown_message("Could not create task <Flip Astro>\n"); |
sys_end(); |
return; |
exit(1); |
} |
#endif |
} |