Mercurial > hg > Game > Cerium
diff TaskManager/Cell/CellTaskManagerImpl.cc @ 713:97adb3fe85c6 draft
remove SIMPLE_TASK conditional
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 16 Dec 2009 15:27:46 +0900 |
parents | ec6c897448ca |
children | e78238b7c5d6 |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Wed Dec 16 09:39:24 2009 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Wed Dec 16 15:27:46 2009 +0900 @@ -91,11 +91,7 @@ CellTaskManagerImpl::set_runTaskList() { TaskListPtr list; -#ifdef SIMPLE_TASK SimpleTaskPtr task; -#else - TaskPtr task; -#endif int speid; while (HTaskPtr htask = activeTaskQueue->poll()) { @@ -130,7 +126,7 @@ } task = &list->tasks[list->length++]; -#ifdef SIMPLE_TASK + if (htask->command==TaskArray1) { // compatibility // Task with ListData is stored in the ListData @@ -152,10 +148,6 @@ } else { *task = *(SimpleTask*)htask; } -#else - TaskPtr stask = (TaskPtr) task; - *stask = *(TaskPtr) htask; -#endif } }