地图保存bug

back_recharge
jiahuiwen 2019-04-02 20:26:02 +08:00
parent f3961d007f
commit 251e724a2e
2 changed files with 2 additions and 2 deletions

View File

@ -531,7 +531,7 @@ public class MapLogic {
// 检测该事件点是否已被销毁
else if (cell != null && nextEventId != 0) {
cell.setEventId(nextEventId);
mapManager.addOrUpdateCell(mapManager.getCurXY(), cell);
mapManager.addOrUpdateCell(cell.getCellId(), cell);
targetEventId = nextEventId;
}

View File

@ -94,7 +94,7 @@ public class BehaviorUtil {
Cell cell = mapInfo.get(destoryXY);
if (cell != null) {
cell.setEventId(-1);
mapManager.addOrUpdateCell(cell.getCellId(), cell);
mapManager.addOrUpdateCell(destoryXY, cell);
addRefreshInfo(cell.getPointId(), mapManager);
}
}