mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
CPU players sending an engineer to explore fog of war before building
This commit is contained in:
+1
-1
@@ -683,7 +683,7 @@ namespace battleship{
|
||||
for(int i = 0; i < ufCtr->getNumGameObjectFrames(); i++){
|
||||
GameObjectFrame gmObjFr = ufCtr->getGameObjectFrame(i);
|
||||
|
||||
if(gmObjFr.status == GameObjectFrame::NOT_PLACEABLE) continue;
|
||||
if(gmObjFr.status == GameObjectFrame::BLOCKED_BY_DIFF_TERR) continue;
|
||||
|
||||
Unit *buildStruct = GameObjectFactory::createUnit(mainPlayer, gmObjFr.getId(), gmObjFr.getPos(), gmObjFr.getRot());
|
||||
issueOrder(type, vector<Order::Target>{Order::Target(buildStruct, gmObjFr.getPos())}, shiftPressed);
|
||||
|
||||
Reference in New Issue
Block a user