Changeset 310 for trunk


Ignore:
Timestamp:
Mar 15, 2021, 8:06:54 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Multiplayer with multiple local users didn't work on Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r301 r310  
    40724072  TerrainTile: Cardinal;
    40734073begin
     4074  if not Assigned(MyMap) then Exit;
    40744075  cmPolOcean := GrExt[HGrSystem].Data.Canvas.Pixels[101, 67];
    40754076  cmPolNone := GrExt[HGrSystem].Data.Canvas.Pixels[102, 67];
    40764077  hw := MapWidth div (xxt * 2);
    4077   with Mini.Canvas do
    4078   begin
     4078  with Mini.Canvas do begin
    40794079    Brush.Color := $000000;
    40804080    FillRect(Rect(0, 0, Mini.width, Mini.height));
     
    40834083  MiniPixel := PixelPointer(Mini);
    40844084  PrevMiniPixel := PixelPointer(Mini);
    4085   for y := 0 to ScaleToNative(G.ly) - 1 do
    4086   begin
    4087     for x := 0 to ScaleToNative(G.lx) - 1 do
    4088       if MyMap[ScaleFromNative(x) + G.lx * ScaleFromNative(y)] and fTerrain <> fUNKNOWN then
    4089       begin
    4090         Loc := ScaleFromNative(x) + G.lx * ScaleFromNative(y);
    4091         for i := 0 to 1 do
    4092         begin
     4085  for y := 0 to ScaleToNative(G.ly) - 1 do begin
     4086    for x := 0 to ScaleToNative(G.lx) - 1 do begin
     4087      Loc := ScaleFromNative(x) + G.lx * ScaleFromNative(y);
     4088      if (MyMap[Loc] and fTerrain) <> fUNKNOWN then begin
     4089        for i := 0 to 1 do begin
    40934090          xm := ((x - ScaleToNative(xwMini)) * 2 + i + y and 1 - ScaleToNative(hw) +
    40944091            ScaleToNative(G.lx) * 5) mod (ScaleToNative(G.lx) * 2);
     
    41244121              PrevMiniPixel.Pixel^.G := cm shr 8 and $FF;
    41254122              PrevMiniPixel.Pixel^.R := cm and $FF;
    4126             end
     4123            end;
    41274124          end
    41284125          else if (i = 0) and (MyMap[Loc] and fUnit <> 0) then
     
    41574154        end;
    41584155      end;
     4156    end;
    41594157  end;
    41604158  Mini.EndUpdate;
     
    43514349  Prio: boolean;
    43524350begin
     4351  if not Assigned(MyRO) then Exit;
    43534352  with Panel.Canvas do
    43544353  begin
Note: See TracChangeset for help on using the changeset viewer.