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

Function playDemolishTreeSound

src/OpenLoco/src/Map/TileManager.cpp:1077–1081  ·  view source on GitHub ↗

0x0048B089

Source from the content-addressed store, hash-verified

1075
1076 // 0x0048B089
1077 static void playDemolishTreeSound(const World::Pos3& loc)
1078 {
1079 const auto frequency = gPrng2().randNext(20003, 24098);
1080 Audio::playSound(Audio::SoundId::demolishTree, Audio::ChannelId::effects, loc, -1100, frequency);
1081 }
1082
1083 // 0x004BB432
1084 // bl = flags;

Callers 1

removeTreeFunction · 0.85

Calls 2

playSoundFunction · 0.85
randNextMethod · 0.45

Tested by

no test coverage detected