浏览代码

Fixed updating camera position after teleportation (gate/teleport/spells);

Fay 10 年之前
父节点
当前提交
485a8b5c9a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/CPlayerInterface.cpp

+ 2 - 0
client/CPlayerInterface.cpp

@@ -276,6 +276,8 @@ void CPlayerInterface::heroMoved(const TryMoveHero & details)
 
 
 				}
 				}
 			}
 			}
+			adventureInt->centerOn(hero); //actualizing screen pos
+			adventureInt->minimap.redraw();
 			adventureInt->heroList.update(hero);
 			adventureInt->heroList.update(hero);
 			return;	//teleport - no fancy moving animation
 			return;	//teleport - no fancy moving animation
 					//TODO: smooth disappear / appear effect
 					//TODO: smooth disappear / appear effect