mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 16:44:50 +02:00
fixed #158
This commit is contained in:
@@ -85,8 +85,8 @@ struct Camera : ICamera {
|
||||
Sound::listener[cameraIndex].matrix = matrix;
|
||||
if (cameraIndex == 0) { // reverb effect only for main player
|
||||
TR::Room &r = level->rooms[getRoomIndex()];
|
||||
int h = (r.info.yBottom - r.info.yTop) / 1024;
|
||||
Sound::reverb.setRoomSize(vec3(float(r.xSectors), float(h), float(r.zSectors)) * 2.419f); // convert cells size into meters
|
||||
float h = (r.info.yBottom - r.info.yTop) / 1024.0f;
|
||||
Sound::reverb.setRoomSize(vec3(float(r.xSectors), h, float(r.zSectors)) * 2.419f); // convert cells size into meters
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user