| 613 | } |
| 614 | |
| 615 | CGameObject *CGameObject::GetTopObject() |
| 616 | { |
| 617 | CGameObject *obj = this; |
| 618 | while (obj->Container != 0xFFFFFFFF) |
| 619 | { |
| 620 | obj = g_World->FindWorldObject(obj->Container); |
| 621 | } |
| 622 | return obj; |
| 623 | } |
| 624 | |
| 625 | CGameItem *CGameObject::FindLayer(int layer) const |
| 626 | { |
no test coverage detected