| 48 | } |
| 49 | |
| 50 | CGameTask* CGameTaskManager::GiveGameTaskToActor(const TASK_ID& id, u32 timeToComplete, bool bCheckExisting) |
| 51 | { |
| 52 | if (bCheckExisting && HasGameTask(id)) |
| 53 | return NULL; |
| 54 | CGameTask* t = xr_new<CGameTask>(id); |
| 55 | |
| 56 | return GiveGameTaskToActor(t, timeToComplete, bCheckExisting); |
| 57 | } |
| 58 | |
| 59 | CGameTask* CGameTaskManager::GiveGameTaskToActor(CGameTask* t, u32 timeToComplete, bool bCheckExisting) |
| 60 | { |
no test coverage detected