Menu

[RESOLVED] New bug prevents hearing noise when bullets smash into your aircraft

bbosen
2022-06-02
2022-07-25
  • bbosen

    bbosen - 2022-06-02

    While testing Linux Air Combat version 8.77 I noticed that when Hank shot me down online during this week's regular Wednesday afternoon online gathering, I didn't hear the noise of his bullets smashing into my aircraft. Subsequent testing revealed that this problem is present in several recently published versions of LAC.

    I dug into the source code and found the source of the problem. Anybody can fix this by uncommenting a single line of code in main.cpp. Look for code like THIS inside main.cpp's "TimerGame()" function:

        if (lastDurability > fplayer->Durability && !fplayer->ai && !LandedAtSafeSpeed)
            {
            //@ Get here when the player is damaged.
            fplayer->RollRate *=0.95; //@ Make player aircraft less nimble.
            fplayer->maxthrust*=0.995; //@ Damage player engine too.
            //sound->play (SOUND_HIT1, false);
            lastDurability = (int) fplayer->Durability;
            vibration = 12 * timestep;
            setPlaneVolume();
            }
    

    As you can see, the "sound->play()" function is prepended with two slash characters, turning that line into a comment and preventing its execution. I don't know why that was ever done, but it should be UNDONE!

    Accordingly, that function should be changed to this:

    if (lastDurability > fplayer->Durability && !fplayer->ai && !LandedAtSafeSpeed)
        {
        //@ Get here when the player is damaged.
        fplayer->RollRate *=0.95; //@ Make player aircraft less nimble.
        fplayer->maxthrust*=0.995; //@ Damage player engine too.
        sound->play (SOUND_HIT1, false);
        lastDurability = (int) fplayer->Durability;
        vibration = 12 * timestep;
        setPlaneVolume();
        }
    

    Exactly as you might expect, once that line is uncommented, the missing sound effects are restored when people hit your airplane with their bullets.

    I will ensure that future versions of LAC do not suffer from this bug, but if you don't want to wait for the next release, you can easily fix this yourself by recompiling the source code with that change.

    Sorry about that oversight..... : (

     

    Last edit: bbosen 2022-06-02
  • bbosen

    bbosen - 2022-07-06

    This bug has been fixed in Linux Air Combat version 8.73, now undergoing alpha testing in our labs. We expect to release this version for beta testing within the next few days.

     
  • bbosen

    bbosen - 2022-07-25

    This fix is now available in production versions since 8.73.

     

Log in to post a comment.

MongoDB Logo MongoDB