边缘触发和覆盖触发

back_recharge
jiahuiwen 2019-03-28 18:48:59 +08:00
parent d40956b247
commit 993def6d33
1 changed files with 6 additions and 3 deletions

View File

@ -365,11 +365,14 @@ public class MapLogic {
mapManager.setTotalStep(leftStep);
}
Cell cell = mapManager.getMapInfo().get(triggerXY);
if (cell == null) {
cell = mapManager.getMapInfo().get(curXY);
if (cell == null) {
LOGGER.info("xy is wrong =>{} triggerXY=>{}", curXY, triggerXY);
MessageUtil.sendErrorResponse(session, 0, messageType.getNumber(), "");
return;
}
}
mapManager.setTriggerXY(triggerXY);
mapManager.addWalkCells(new HashSet<>(cells));
mapManager.setCurXY(curXY);