OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
99 stars 24 forks source link

AI - Dino attacking sound bug #20

Closed meekee7 closed 4 years ago

meekee7 commented 4 years ago

When a dino is attacking, sometimes a sound bug occurs. It sounds like the attacking sound effect is rapidly started over and over again before its playback is completed. It also sounds very weird. This bug should be resolved.

meekee7 commented 4 years ago

The cause has been identified. I had poorly understood the purpose of CSetHelper in the CSet bitfield structure. When I had first added a copy-assignment operator to CSetHelper, it did not behave the way it was supposed to.

However, the CSetHelper fix - including a copy-assignment operator - in PR #49 has the correct behavior and this bug does not occur anymore.