Ignore:
Timestamp:
Apr 1, 2021, 9:30:25 AM (3 years ago)
Author:
chronos
Message:
  • Fixed: Incorrect drawing of city names under units. MapOptions need to be global variable for all TIsoMap instances.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r335 r337  
    12591259begin
    12601260  MiniMap.MapOptions := MapOptionChecked;
    1261   MainMap.MapOptions := MapOptionChecked;
     1261  MapOptions := MapOptionChecked;
    12621262  if ClientMode = cEditMap then
    1263     MainMap.MapOptions := MainMap.MapOptions + [moEditMode];
     1263    MapOptions := MapOptions + [moEditMode];
    12641264  if mLocCodes.Checked then
    1265     MainMap.MapOptions := MainMap.MapOptions + [moLocCodes];
     1265    MapOptions := MapOptions + [moLocCodes];
    12661266end;
    12671267
     
    35213521  Buffer := TBitmap.Create;
    35223522  Buffer.PixelFormat := pf24bit;
    3523   if 2 * lxmax > 3 * xSizeBig then
    3524     Buffer.width := 2 * lxmax
    3525   else
    3526     Buffer.width := 3 * xSizeBig;
    3527   if lymax > 3 * ySizeBig then
    3528     Buffer.height := lymax
    3529   else
    3530     Buffer.height := 3 * ySizeBig;
     3523  if 2 * lxmax > 3 * xSizeBig then Buffer.width := 2 * lxmax
     3524    else Buffer.width := 3 * xSizeBig;
     3525  if lymax > 3 * ySizeBig then Buffer.height := lymax
     3526    else Buffer.height := 3 * ySizeBig;
    35313527  Buffer.Canvas.Font.Assign(UniFont[ftSmall]);
    35323528  for i := 0 to nPl - 1 do
     
    50715067          // if MoveHintToLoc>=0 then
    50725068          // ShowMoveHint(MoveHintToLoc, true);
    5073         end
     5069        end;
    50745070      end
    50755071      else if TurnComplete and not supervising then
     
    63916387begin
    63926388  MainMap.pDebugMap := p;
    6393   MainMap.MapOptions := MainMap.MapOptions - [moLocCodes];
     6389  MapOptions := MapOptions - [moLocCodes];
    63946390  mLocCodes.Checked := false;
    63956391  MapValid := false;
Note: See TracChangeset for help on using the changeset viewer.