* Set the overlay sprite of the tile. * @param animation The Animation for which we change the overlay sprite. * @param parameter The TileID to which the overlay sprite is set. */
| 100 | * @param parameter The TileID to which the overlay sprite is set. |
| 101 | */ |
| 102 | static void Animation_Func_SetOverlayTile(Animation *animation, int16 parameter) |
| 103 | { |
| 104 | uint16 packed = Tile_PackTile(animation->tile); |
| 105 | Tile *t = &g_map[packed]; |
| 106 | assert(parameter >= 0); |
| 107 | |
| 108 | if (!Map_IsPositionUnveiled(packed)) return; |
| 109 | |
| 110 | t->overlayTileID = g_iconMap[g_iconMap[animation->iconGroup] + parameter]; |
| 111 | t->houseID = animation->houseID; |
| 112 | |
| 113 | Map_Update(packed, 0, false); |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Rewind the animation. |
no test coverage detected