地图保存bug
parent
f3961d007f
commit
251e724a2e
|
@ -531,7 +531,7 @@ public class MapLogic {
|
||||||
// 检测该事件点是否已被销毁
|
// 检测该事件点是否已被销毁
|
||||||
else if (cell != null && nextEventId != 0) {
|
else if (cell != null && nextEventId != 0) {
|
||||||
cell.setEventId(nextEventId);
|
cell.setEventId(nextEventId);
|
||||||
mapManager.addOrUpdateCell(mapManager.getCurXY(), cell);
|
mapManager.addOrUpdateCell(cell.getCellId(), cell);
|
||||||
targetEventId = nextEventId;
|
targetEventId = nextEventId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ public class BehaviorUtil {
|
||||||
Cell cell = mapInfo.get(destoryXY);
|
Cell cell = mapInfo.get(destoryXY);
|
||||||
if (cell != null) {
|
if (cell != null) {
|
||||||
cell.setEventId(-1);
|
cell.setEventId(-1);
|
||||||
mapManager.addOrUpdateCell(cell.getCellId(), cell);
|
mapManager.addOrUpdateCell(destoryXY, cell);
|
||||||
addRefreshInfo(cell.getPointId(), mapManager);
|
addRefreshInfo(cell.getPointId(), mapManager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue