FrozenSand / ioq3-for-UrbanTerror-4

The officially supported ioquake3 engine by the Frozen Sand Development Team for the game Urban Terror 4.x
http://www.urbanterror.info
GNU General Public License v2.0
148 stars 65 forks source link

Fixed dmaHD entering an infinite loop on certain maps #43

Closed anthonynguyen closed 10 years ago

anthonynguyen commented 10 years ago

In certain cases (sound/misc/windfly.wav in ut4_kingsgambit_a9.pk3, for example), dmaHD_NormalizeSamplePosition will get a "samples" value of 0, and it will enter an infinite loop. This is happening because the "data" chunk of a wav file has a size of 0. According to ioquake/ioq3@ae39051f, these are legal, so I didn't change the behaviour of the wav file loader.

Barbatos commented 10 years ago

Thank you!