1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00
This commit is contained in:
XProger
2019-01-27 23:21:37 +03:00
parent a9466b1aae
commit 97c97b950f

View File

@@ -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
}
}