MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Sprite_Handle_Explosion_MapTiles

Method Sprite_Handle_Explosion_MapTiles

Source/Fodder.cpp:9348–9367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9346}
9347
9348void 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
9369void cFodder::Map_Destroy_Tiles() {
9370 uint8* MapPtr = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected