mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
[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:
parent
d7e312ab8b
commit
ecb9a15946
16 changed files with 65 additions and 63 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue