projects
/
empserver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc793ea
)
pathfind: Delete write-only variable in path_find_visualize()
author
Markus Armbruster
<armbru@pond.sub.org>
Sat, 23 Jan 2021 07:40:51 +0000
(08:40 +0100)
committer
Markus Armbruster
<armbru@pond.sub.org>
Sat, 6 Feb 2021 15:55:37 +0000
(16:55 +0100)
A useless variable crept into commit
2fc9dfc52
"New
path_find_visualize(), to aid debugging" (v4.3.27). Delete it.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/common/pathfind.c
patch
|
blob
|
history
diff --git
a/src/lib/common/pathfind.c
b/src/lib/common/pathfind.c
index 33127b79397a2b81337bb14a4317bd9f09625395..4b3b75c94b0183f9987efcd87f426a6d592656b9 100644
(file)
--- a/
src/lib/common/pathfind.c
+++ b/
src/lib/common/pathfind.c
@@
-490,12
+490,11
@@
path_find_visualize(coord sx, coord sy, coord dx, coord dy)
{
int uid;
int xmin, xmax, ymin, ymax, x, y, odd, ch;
- double c,
u,
cost;
+ double c, cost;
char buf[1024];
assert(pf_cost(XYOFFSET(sx, sy)) == 0.0);
c = pf_cost(XYOFFSET(dx, dy));
- u = c / 10.0;
/* find bounding box */
xmin = xmax = 0;