| 351 | } |
| 352 | |
| 353 | void CLevelGraph::draw_objects() |
| 354 | { |
| 355 | u32 I = 0; |
| 356 | u32 E = Level().Objects.o_count(); |
| 357 | for (; I < E; ++I) |
| 358 | { |
| 359 | CObject* _O = Level().Objects.o_get_by_iterator(I); |
| 360 | |
| 361 | CCustomMonster* tpCustomMonster = smart_cast<CCustomMonster*>(_O); |
| 362 | if (tpCustomMonster) |
| 363 | { |
| 364 | tpCustomMonster->OnRender(); |
| 365 | if (!tpCustomMonster->movement().detail().path().empty()) |
| 366 | { |
| 367 | Fvector temp = tpCustomMonster->movement().detail().path()[tpCustomMonster->movement().detail().path().size() - 1].position; |
| 368 | Level().debug_renderer().draw_aabb(temp, 1.f, 1.f, 1.f, D3DCOLOR_XRGB(0, 0, 255)); |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | #ifdef DEBUG |
| 375 | |