24,8 → 24,6 |
|
rock_ini rock_new; |
|
extern PID shutdown_task_PID; |
|
TASK shot(int i) |
{ |
int x, y; /* shot graphic position */ |
374,7 → 372,7 |
pid = task_create("Astro", astro, &ms, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <astro>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} else |
task_activate(pid); |
387,7 → 385,7 |
pid = task_create("Taken", look, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <Taken>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} else |
task_activate(pid); |
403,7 → 401,7 |
pid_TL = task_create("TurnLeft", turn, &mp, NULL); |
if (pid_TL == NIL) { |
sys_shutdown_message("Could not create task <Turn L>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
|
418,7 → 416,7 |
pid_TR = task_create("TurnRight", turn, &mp, NULL); |
if (pid_TR == NIL) { |
sys_shutdown_message("Could not create task <Turn R>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
|
433,7 → 431,7 |
pid_SU = task_create("SpeedUP", speed, &mp, NULL); |
if (pid_SU == NIL) { |
sys_shutdown_message("Could not create task <Speed UP>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
|
448,7 → 446,7 |
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL); |
if (pid_SD == NIL) { |
sys_shutdown_message("Could not create task <Speed DOWN>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
|
463,7 → 461,7 |
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL); |
if (pid_SZ == NIL) { |
sys_shutdown_message("Could not create task <Speed ZERO>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
|
475,7 → 473,7 |
pid = task_create("MoveAstro", move, &mp, NULL); |
if (pid == NIL) { |
sys_shutdown_message("Could not create task <MoveAstro>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} else |
task_activate(pid); |
492,7 → 490,7 |
pid_FL = task_create("FlipAstro", turn, &mp, NULL); |
if (pid_FL == NIL) { |
sys_shutdown_message("Could not create task <Flip Astro>\n"); |
task_activate(shutdown_task_PID); |
sys_end(); |
return; |
} |
#endif |