| 9346 | } |
| 9347 | |
| 9348 | void cFodder::Sprite_Handle_Explosion_MapTiles(sSprite* pSprite) { |
| 9349 | |
| 9350 | int16 Data0 = pSprite->field_0 + 4; |
| 9351 | int16 Data4 = pSprite->field_4 - 8; |
| 9352 | |
| 9353 | const int16* Data24 = mSprite_Explosion_Positions; |
| 9354 | |
| 9355 | for (; *Data24 != -32768;) { |
| 9356 | |
| 9357 | Data0 += *Data24++; |
| 9358 | Data4 += *Data24++; |
| 9359 | |
| 9360 | // Dont use negative map x/y coorindates |
| 9361 | if (Data0 < 0 || Data4 < 0) { |
| 9362 | continue; |
| 9363 | } |
| 9364 | |
| 9365 | mMap_Destroy_Tiles.emplace_back( Data0, (pSprite->field_18 == eSprite_Explosion2) ? -Data4 : Data4 ); |
| 9366 | } |
| 9367 | } |
| 9368 | |
| 9369 | void cFodder::Map_Destroy_Tiles() { |
| 9370 | uint8* MapPtr = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected