Mark find_connected_distance vms_vector const
This commit is contained in:
parent
03574d0f5e
commit
08d72ae525
|
@ -111,7 +111,7 @@ int check_lsegments_validity(void);
|
|||
// set to WID_FLY_FLAG to see if a robot could fly from one to the other.
|
||||
// Search up to a maximum depth of max_depth.
|
||||
// Return the distance.
|
||||
extern fix find_connected_distance(vms_vector *p0, int seg0, vms_vector *p1, int seg1, int max_depth, int wid_flag);
|
||||
fix find_connected_distance(const vms_vector *p0, int seg0, const vms_vector *p1, int seg1, int max_depth, int wid_flag);
|
||||
|
||||
//create a matrix that describes the orientation of the given segment
|
||||
extern void extract_orient_from_segment(vms_matrix *m,segment *seg);
|
||||
|
|
|
@ -122,8 +122,7 @@ static int digi_unxlat_sound(int soundno)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void digi_get_sound_loc( vms_matrix * listener, vms_vector * listener_pos, int listener_seg, vms_vector * sound_pos, int sound_seg, fix max_volume, int *volume, int *pan, fix max_distance )
|
||||
static void digi_get_sound_loc( const vms_matrix * listener, const vms_vector * listener_pos, int listener_seg, const vms_vector * sound_pos, int sound_seg, fix max_volume, int *volume, int *pan, fix max_distance )
|
||||
{
|
||||
|
||||
vms_vector vector_to_sound;
|
||||
|
|
|
@ -883,7 +883,7 @@ static void add_to_fcd_cache(int seg0, int seg1, int depth, fix dist)
|
|||
// Determine whether seg0 and seg1 are reachable in a way that allows sound to pass.
|
||||
// Search up to a maximum depth of max_depth.
|
||||
// Return the distance.
|
||||
fix find_connected_distance(vms_vector *p0, int seg0, vms_vector *p1, int seg1, int max_depth, int wid_flag)
|
||||
fix find_connected_distance(const vms_vector *p0, int seg0, const vms_vector *p1, int seg1, int max_depth, int wid_flag)
|
||||
{
|
||||
int cur_seg;
|
||||
int sidenum;
|
||||
|
|
Loading…
Reference in a new issue