[sound] Correct "default" listener origin

Position vectors need to be homogeneous, I forgot that when doing the
change.
This commit is contained in:
Bill Currie 2022-03-01 01:02:11 +09:00
parent 57dd4494cc
commit 457c73967b

View file

@ -555,7 +555,7 @@ SND_SetListener (snd_t *snd, transform_t *ear, const byte *ambient_sound_level)
listener_right = Transform_Right (ear);
listener_up = Transform_Up (ear);
} else {
listener_origin = (vec4f_t) { };
listener_origin = (vec4f_t) {0, 0, 0, 1};
listener_forward = (vec4f_t) {1, 0, 0, 0};
listener_right = (vec4f_t) {0, -1, 0, 0};
listener_up = (vec4f_t) {0, 0, 1, 0};