| 1453 | } |
| 1454 | |
| 1455 | bool CAnimationManager::CorpsePixelsInXY(CGameItem *obj, int x, int y) |
| 1456 | { |
| 1457 | if (g_CorpseManager.InList(obj->Serial, 0)) |
| 1458 | { |
| 1459 | return false; |
| 1460 | } |
| 1461 | |
| 1462 | m_Sitting = 0; |
| 1463 | Anim.Direction = (obj->Layer & 0x7F) & 7; |
| 1464 | bool mirror = false; |
| 1465 | |
| 1466 | GetAnimDirection(Anim.Direction, mirror); |
| 1467 | |
| 1468 | uint8_t animIndex = obj->AnimIndex; |
| 1469 | Anim.Group = GetDieGroupIndex(obj->GetGraphicForAnimation(), obj->UsedLayer != 0); |
| 1470 | |
| 1471 | return TestPixels(obj, x, y, mirror, animIndex) || |
| 1472 | DrawEquippedLayers(true, obj, x, y, mirror, Anim.Direction, animIndex, 0); |
| 1473 | } |
| 1474 | |
| 1475 | uint16_t CAnimationManager::ConvertBodyIfNeeded(uint16_t graphic, bool isParent) |
| 1476 | { |
no test coverage detected