* @brief Helper for rendering a specific player icon (Mana Shield or Reflect) */
| 387 | * @brief Helper for rendering a specific player icon (Mana Shield or Reflect) |
| 388 | */ |
| 389 | void DrawPlayerIconHelper(const Surface &out, MissileGraphicID missileGraphicId, Point position, bool lighting, bool infraVision) |
| 390 | { |
| 391 | position.x -= GetMissileSpriteData(missileGraphicId).animWidth2; |
| 392 | |
| 393 | const ClxSprite sprite = (*GetMissileSpriteData(missileGraphicId).sprites).list()[0]; |
| 394 | |
| 395 | if (!lighting) { |
| 396 | ClxDraw(out, position, sprite); |
| 397 | return; |
| 398 | } |
| 399 | |
| 400 | if (infraVision) { |
| 401 | ClxDrawTRN(out, position, sprite, GetInfravisionTRN()); |
| 402 | return; |
| 403 | } |
| 404 | |
| 405 | ClxDrawLight(out, position, sprite, LightTableIndex); |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * @brief Helper for rendering player icons (Mana Shield and Reflect) |
no test coverage detected