浏览代码

Fixed bug #208 - lookout tower (and possibly other structures) update map view when built.

DjWarmonger 16 年之前
父节点
当前提交
882ae5a53a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      server/CGameHandler.cpp

+ 7 - 0
server/CGameHandler.cpp

@@ -2061,6 +2061,13 @@ bool CGameHandler::buildStructure( si32 tid, si32 bid )
 		vistiCastleObjects (t, t->visitingHero);
 	if(t->garrisonHero)
 		vistiCastleObjects (t, t->garrisonHero);
+	//reveal ground for lookout tower
+	FoWChange fw;
+	fw.player = t->tempOwner;
+	fw.mode = 1;
+	getTilesInRange(fw.tiles, t->pos, t->getSightRadious(), t->tempOwner,1);
+	sendAndApply(&fw);
+	
 	return true;
 }
 bool CGameHandler::razeStructure (si32 tid, si32 bid)