MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / createDestructExplosion

Function createDestructExplosion

src/OpenLoco/src/Map/TileManager.cpp:1112–1117  ·  view source on GitHub ↗

0x0048B0C7

Source from the content-addressed store, hash-verified

1110
1111 // 0x0048B0C7
1112 void createDestructExplosion(const World::Pos3& pos)
1113 {
1114 ExplosionSmoke::create(pos + World::Pos3{ 0, 0, 13 });
1115 const auto randFreq = gPrng2().randNext(20'003, 24'098);
1116 Audio::playSound(Audio::SoundId::demolishBuilding, Audio::ChannelId::effects, pos, -1400, randFreq);
1117 }
1118
1119 // 0x0042D8FF
1120 void removeBuildingElement(BuildingElement& elBuilding, const World::Pos2& pos)

Callers 1

removeBuildingElementFunction · 0.85

Calls 3

playSoundFunction · 0.85
createFunction · 0.50
randNextMethod · 0.45

Tested by

no test coverage detected