More New fog of war cleanups. Minimap Fixes and Goldmine Fixes
This commit is contained in:
parent
cbc8f9e3b8
commit
402e67c6b8
2 changed files with 10 additions and 1 deletions
|
@ -259,7 +259,9 @@ global void DrawMinimap(int vx __attribute__((unused)),
|
|||
for( mx=0; mx<MINIMAP_W; ++mx ) {
|
||||
#ifdef NEW_FOW
|
||||
if( IsMapFieldVisible(Minimap2MapX[mx],(Minimap2MapY[my]/TheMap.Width))
|
||||
) {
|
||||
|| (IsMapFieldExplored(Minimap2MapX[mx],
|
||||
(Minimap2MapY[my]/TheMap.Width)) &&
|
||||
((mx&1)==(my&1)))) {
|
||||
VideoDrawPixel(((unsigned char*)MinimapGraphic->Frames)
|
||||
[mx+my*MINIMAP_W],x+mx,y+my);
|
||||
}
|
||||
|
|
|
@ -1917,6 +1917,7 @@ startn:
|
|||
|
||||
found:
|
||||
unit->Wait=1; // should be correct unit has still action
|
||||
|
||||
PlaceUnit(unit, x, y);
|
||||
}
|
||||
|
||||
|
@ -2040,6 +2041,12 @@ global void DropOutAll(const Unit* source)
|
|||
++i;
|
||||
DropOutOnSide(unit,LookingW
|
||||
,source->Type->TileWidth,source->Type->TileHeight);
|
||||
#ifdef NEW_FOW
|
||||
//Worker is back on map, unmark sight
|
||||
MapUnmarkSight(unit->Player,source->X+source->Type->TileWidth/2,
|
||||
source->Y+source->Type->TileHeight/2,
|
||||
source->Stats->SightRange);
|
||||
#endif
|
||||
DebugCheck( unit->Orders[0].Goal );
|
||||
unit->Orders[0].Action=UnitActionStill;
|
||||
unit->Wait=unit->Reset=1;
|
||||
|
|
Loading…
Reference in a new issue