Skip to content

Commit

Permalink
fix incorrect use of GetFlagsFromHeight in CGameHelper::Explosion (fi…
Browse files Browse the repository at this point in the history
…xes #4699)
  • Loading branch information
Johan Rehnberg committed Mar 12, 2015
1 parent 8764303 commit 1aad565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Game/GameHelper.cpp
Expand Up @@ -317,7 +317,7 @@ void CGameHelper::Explosion(const ExplosionParams& params) {
if (weaponDef != NULL) {
const GuiSoundSet& soundSet = weaponDef->hitSound;

const unsigned int soundFlags = CCustomExplosionGenerator::GetFlagsFromHeight(params.pos.y, altitude);
const unsigned int soundFlags = CCustomExplosionGenerator::GetFlagsFromHeight(params.pos.y, realHeight);
const unsigned int soundMask = CCustomExplosionGenerator::SPW_WATER | CCustomExplosionGenerator::SPW_UNDERWATER;

const int soundNum = ((soundFlags & soundMask) != 0);
Expand Down

0 comments on commit 1aad565

Please sign in to comment.