... |
... |
@@ -216,21 +216,14 @@ |
216 |
216 |
start |
217 |
217 |
:actor = new Actor(); |
218 |
218 |
:actor.init(); |
219 |
|
-if(actor.process())then(false) |
220 |
|
-:actor.killSelf(); |
221 |
|
-else(true) |
|
219 |
+if(actor.process())then(true) |
222 |
222 |
|B| |
223 |
223 |
:actor.postProcess(); |
224 |
224 |
|A| |
|
223 |
+else(false) |
|
224 |
+:actor.killSelf(); |
225 |
225 |
endif |
226 |
|
-while(actor.canFinish()) is (false) |
227 |
227 |
:actor.finish(); |
228 |
|
-endwhile(true) |
229 |
|
-fork |
230 |
|
- :actor.stop(); |
231 |
|
-fork |
232 |
|
- :env.stop(); |
233 |
|
-endfork |
234 |
234 |
|
235 |
235 |
end |
236 |
236 |
|