1. In one part of the map sounds cannot be heard correctly. Especially the sound of 2 doors (at -18176, -2048 and -18176, -2432 occured totally randomly depending on where I was standing.
2. When shooting with a hitscan weapon in some hallways the puffs indicating hitting a wall occured in mid-air.
This map has very odd coordinates. The minimum x-coordinate is -19800, the maximum is -4900. So my guess is that both problems are related to fixed point overflows.
I think I found at least one of them. The following code calculating the sector's soundorg is not able to handle such extreme coordinates:
Code: Select all
sector->soundorg[0] = (bbox.Right()+bbox.Left())/2;
sector->soundorg[1] = (bbox.Top()+bbox.Bottom())/2;