From 39a7c54ceffb921258ac0148f58ccea60da0c87e Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期四, 06 四月 2023 14:03:42 +0800 Subject: [PATCH] 充电逻辑 --- src/main/java/com/zy/common/utils/NavigateSolution.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/common/utils/NavigateSolution.java b/src/main/java/com/zy/common/utils/NavigateSolution.java index ea512b8..5e2e9a4 100644 --- a/src/main/java/com/zy/common/utils/NavigateSolution.java +++ b/src/main/java/com/zy/common/utils/NavigateSolution.java @@ -135,8 +135,8 @@ } } - if (map[x][y] == 0 || map[x][y] == 3) { - //瀛愯建鍜屾瘝杞ㄦ墠鑳借繘琛屼笂涓嬬Щ鍔� + if (map[x][y] == 0 || map[x][y] == 3 || map[x][y] == 4) { + //瀛愯建鍜屾瘝杞ㄣ�佽緭閫佺嚎鎵嶈兘杩涜涓婁笅绉诲姩 if (is_valid(x + 1, y)) { NavigateNode node = new NavigateNode(x + 1, y); -- Gitblit v1.9.1