Compare commits

...
Author SHA1 Message Date
Fabian Woltermann 5b01036723 vm_vec_random_cone needs to be called with the smaller angle first.
This also adds a check to that function to swap the values around should that not be the case
2018-08-10 17:26:42 +02:00
2 changed files with 961 additions and 926 deletions

No files matched your search

+958 -923
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -1374,8 +1374,8 @@ void flash_ball::initialize(int number, float min_ray_width, float max_ray_width
//random cones
vec3d start, end;
vm_vec_random_cone(&start, dir, outer, inner);
vm_vec_random_cone(&end, dir, outer, inner);
vm_vec_random_cone(&start, dir, inner, outer);
vm_vec_random_cone(&end, dir, inner, outer);
ray[i].start.world = start;
ray[i].end.world = end;
@@ -1502,7 +1502,7 @@ void flash_ball::initialize(ubyte *bsp_data, float min_ray_width, float max_ray_
//random cones
vec3d end;
vm_vec_random_cone(&end, dir, outer, inner);
vm_vec_random_cone(&end, dir, inner, outer);
ray[i].end.world = end;
}