* Update the tile a Explosion is on. * @param type Are we introducing (0) or updating (2) the tile. * @param e The Explosion in question. */
| 31 | * @param e The Explosion in question. |
| 32 | */ |
| 33 | static void Explosion_Update(uint16 type, Explosion *e) |
| 34 | { |
| 35 | if (e == NULL) return; |
| 36 | |
| 37 | if (type == 1 && e->isDirty) return; |
| 38 | |
| 39 | e->isDirty = (type != 0); |
| 40 | |
| 41 | Map_UpdateAround(24, e->position, NULL, g_functions[2][type]); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Handle damage to a tile, removing spice, removing concrete, stuff like that. |
no test coverage detected