地图保存bug
parent
f3961d007f
commit
251e724a2e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue