| 1434 | } |
| 1435 | |
| 1436 | void CAnimationManager::DrawCorpse(CGameItem *obj, int x, int y) |
| 1437 | { |
| 1438 | if (g_CorpseManager.InList(obj->Serial, 0)) |
| 1439 | { |
| 1440 | return; |
| 1441 | } |
| 1442 | |
| 1443 | m_Sitting = 0; |
| 1444 | Anim.Direction = (obj->Layer & 0x7F) & 7; |
| 1445 | bool mirror = false; |
| 1446 | GetAnimDirection(Anim.Direction, mirror); |
| 1447 | Color = obj->Hidden() ? 0x038E : 0; |
| 1448 | uint8_t animIndex = obj->AnimIndex; |
| 1449 | const uint16_t graphic = g_AnimationManager.ConvertBodyIfNeeded(obj->GetGraphicForAnimation()); |
| 1450 | Anim.Group = GetDieGroupIndex(graphic, obj->UsedLayer != 0); |
| 1451 | Draw(obj, x, y, mirror, animIndex); //Draw animation |
| 1452 | DrawEquippedLayers(false, obj, x, y, mirror, Anim.Direction, animIndex, 0); |
| 1453 | } |
| 1454 | |
| 1455 | bool CAnimationManager::CorpsePixelsInXY(CGameItem *obj, int x, int y) |
| 1456 | { |
no test coverage detected