| 1547 | { |
| 1548 | xLinkAsset* link = &this->link[i]; |
| 1549 | |
| 1550 | if (link->dstEvent == 0x133) |
| 1551 | { |
| 1552 | xSceneID2Name(globals.sceneCur, id); |
| 1553 | xSceneID2Name(globals.sceneCur, link->dstAssetID); |
| 1554 | |
| 1555 | xBase* mychild = zSceneFindObject(link->dstAssetID); |
| 1556 | if (mychild) |
| 1557 | { |
| 1558 | MasterLoveSlave(mychild, isBeginning); |
| 1559 | } |
| 1560 | } |
| 1561 | } |
| 1562 | } |
| 1563 | void ztalkbox::MasterLoveSlave(xBase* slave, S32 starting) |
| 1564 | { |
| 1565 | switch (slave->baseType) |
| 1566 | { |
| 1567 | case eBaseTypeGroup: |
| 1568 | { |
| 1569 | xGroup* grp = (xGroup*)slave; |
| 1570 | S32 cnt = xGroupGetCount(grp); |
| 1571 | |
| 1572 | for (S32 i = 0; i < cnt; i++) |
| 1573 | { |
| 1574 | xBase* grpitem = xGroupGetItemPtr(grp, i); |
| 1575 | if (grpitem) |
| 1576 | { |
| 1577 | MasterLoveSlave(grpitem, starting); |
| 1578 | } |
| 1579 | } |
| 1580 | break; |
| 1581 | } |
| 1582 | case eBaseTypeNPC: |
| 1583 | { |
| 1584 | zNPCCommon* npc = (zNPCCommon*)slave; |
| 1585 | if (starting) |
nothing calls this directly
no test coverage detected