Mark find_connected_distance vms_vector const

This commit is contained in:
Kp 2014-07-13 22:57:45 +00:00
parent 03574d0f5e
commit 08d72ae525
3 changed files with 3 additions and 4 deletions

View file

@ -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);

View file

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

View file

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