| 84 | } |
| 85 | |
| 86 | static ImageId getWallImageId(ImageIndex imageIndex, bool isGhost, const World::WallElement& elWall, const WallObject* wallObject) |
| 87 | { |
| 88 | if (isGhost) |
| 89 | { |
| 90 | return Gfx::applyGhostToImage(imageIndex); |
| 91 | } |
| 92 | |
| 93 | ImageId imageId{ imageIndex }; |
| 94 | |
| 95 | if ((wallObject->flags & WallObjectFlags::hasPrimaryColour) != WallObjectFlags::none) |
| 96 | { |
| 97 | imageId = imageId.withPrimary(elWall.getPrimaryColour()); |
| 98 | } |
| 99 | |
| 100 | if ((wallObject->flags & WallObjectFlags::hasSecondaryColour) != WallObjectFlags::none) |
| 101 | { |
| 102 | imageId = imageId.withSecondary(elWall.getSecondaryColour()); |
| 103 | } |
| 104 | |
| 105 | return imageId; |
| 106 | } |
| 107 | |
| 108 | // 0x004C3D7C |
| 109 | void paintWall(PaintSession& session, const World::WallElement& elWall) |
no test coverage detected