Changeset 328 for trunk/UMiniMap.pas


Ignore:
Timestamp:
Mar 25, 2021, 3:02:29 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Use nWonder constant as number of wonders instead of numeric value.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMiniMap.pas

    r327 r328  
    312312          else if moPolitical in MapOptions then begin
    313313            // Political
    314             if MyMap[Loc] and fTerrain < fGrass then
    315               cm := cmPolOcean
    316             else if MyRO.Territory[Loc] < 0 then
    317               cm := cmPolNone
    318             else
    319               cm := Tribe[MyRO.Territory[Loc]].Color;
     314            if MyMap[Loc] and fTerrain < fGrass then cm := cmPolOcean
     315            else if MyRO.Territory[Loc] < 0 then cm := cmPolNone
     316            else cm := Tribe[MyRO.Territory[Loc]].Color;
    320317          end;
    321318          MiniPixel.Pixel^.B := (cm shr 16) and $ff;
Note: See TracChangeset for help on using the changeset viewer.