* Mask company manager face bits to ensure they are all within range. * @note Does not update the CompanyManagerFace itself. Unused bits are cleared. * @param cmf The CompanyManagerFace. * @param style The face variables. * @return The masked face bits. */
| 1461 | * @return The masked face bits. |
| 1462 | */ |
| 1463 | uint32_t MaskCompanyManagerFaceBits(const CompanyManagerFace &cmf, FaceVars vars) |
| 1464 | { |
| 1465 | CompanyManagerFace face{}; |
| 1466 | |
| 1467 | for (auto var : SetBitIterator(GetActiveFaceVars(cmf, vars))) { |
| 1468 | vars[var].SetBits(face, vars[var].GetBits(cmf)); |
| 1469 | } |
| 1470 | |
| 1471 | return face.bits; |
| 1472 | } |
| 1473 | |
| 1474 | /** |
| 1475 | * Get a face code representation of a company manager face. |
no test coverage detected