2 次代码提交 081892c764 ... fd3f860d56

作者 SHA1 备注 提交日期
  chelios fd3f860d56 Merge branch 'dev' of http://47.96.66.225:10080/chelios/xsdmx-CocosCreator into dev 3 年之前
  chelios d36a3a9fd0 优化地图房间切片 3 年之前
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      assets/Script/game/fight/map/FMap.ts

+ 2 - 2
assets/Script/game/fight/map/FMap.ts

@@ -266,7 +266,7 @@ export default class FMap extends cc.Component {
                 }
             }
         }else{
-            let targetX = targetPos.x - this.midWidth;
+            let targetX = room.x - this.midWidth;
             if(targetX < room.x){
                 targetX = room.x
             }
@@ -315,7 +315,7 @@ export default class FMap extends cc.Component {
                 }
             }
         }else{
-            let targetY = targetPos.y - this.midHeidht;
+            let targetY = room.y - this.midHeidht;
             if(targetY < room.y){
                 targetY = room.y
             }