0x004B9780
| 667 | |
| 668 | // 0x004B9780 |
| 669 | uint32_t VehicleObject::getLength() const |
| 670 | { |
| 671 | auto length = 0; |
| 672 | for (auto i = 0; i < numCarComponents; ++i) |
| 673 | { |
| 674 | if (carComponents[i].bodySpriteInd == 0xFF) |
| 675 | { |
| 676 | continue; |
| 677 | } |
| 678 | |
| 679 | auto unk = carComponents[i].bodySpriteInd & (VehicleObject::kMaxBodySprites - 1); |
| 680 | length += bodySprites[unk].halfLength * 2; |
| 681 | } |
| 682 | return length; |
| 683 | } |
| 684 | } |
no outgoing calls
no test coverage detected