[model] Clean up the brush leaf api a little

Those functions now all take mod_brush_t since they don't work with any
other type of model.
This commit is contained in:
Bill Currie 2023-06-28 21:45:41 +09:00
parent d7e312ab8b
commit ecb9a15946
16 changed files with 65 additions and 63 deletions

View file

@ -655,7 +655,7 @@ CL_Frame (void)
vec4f_t origin;
origin = Transform_GetWorldPosition (cl.viewstate.camera_transform);
l = Mod_PointInLeaf (origin, cl_world.scene->worldmodel);
l = Mod_PointInLeaf (origin, &cl_world.scene->worldmodel->brush);
if (l)
asl = l->ambient_sound_level;
S_Update (cl.viewstate.camera_transform, asl);