Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use right literal while initializing angle
Browse files Browse the repository at this point in the history
Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
ymdatta committed Sep 13, 2024
1 parent 57aa430 commit 5c23fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raster/r.viewshed/viewshed.cpp
Original file line number Diff line number Diff line change
@@ -261,7 +261,7 @@ MemoryVisibilityGrid *viewshed_in_memory(char *inputfname, GridHeader *hd,
e.elev[0] = data[0][i];
e.elev[1] = data[1][i];
e.elev[2] = data[2][i];
e.angle = -1;
e.angle = -1.0;

if (!is_nodata(visgrid->grid->hd, data[1][i]) &&
!is_point_outside_max_dist(*vp, *hd, sn.row, sn.col,
@@ -500,7 +500,7 @@ IOVisibilityGrid *viewshed_external(char *inputfname, GridHeader *hd,
e.elev[0] = data[0][i];
e.elev[1] = data[1][i];
e.elev[2] = data[2][i];
e.angle = -1;
e.angle = -1.0;
if (!is_nodata(visgrid->hd, data[1][i]) &&
!is_point_outside_max_dist(*vp, *hd, sn.row, sn.col,
viewOptions.maxDist)) {

0 comments on commit 5c23fc0

Please sign in to comment.