Changeset 313 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Mar 17, 2021, 11:11:55 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r312 r313 445 445 SoundPreloadDone: Integer; 446 446 MarkCityLoc: Integer; 447 HGrTerrain: Integer;448 HGrCities: Integer;447 HGrTerrain: TGrExtDescr; 448 HGrCities: TGrExtDescr; 449 449 MovieSpeed: Integer; 450 450 CityRepMask: Cardinal; … … 751 751 for emix := 0 to MyRO.nEnemyModel - 1 do 752 752 with MyRO.EnemyModel[emix] do 753 if Tribe[Owner].ModelPicture[mix].HGr = 0then753 if Tribe[Owner].ModelPicture[mix].HGr = HGrSystem then 754 754 InitEnemyModel(emix); 755 755 end; … … 834 834 while MyData.ToldModels < MyRO.nModel do 835 835 begin { new Unit class available } 836 if (ModelPicture[MyData.ToldModels].HGr > 0) and836 if (ModelPicture[MyData.ToldModels].HGr <> HGrSystem) and 837 837 (MyModel[MyData.ToldModels].Kind <> mkSelfDeveloped) then 838 838 begin // save picture of DevModel 839 839 ModelPicture[MyData.ToldModels + 1] := ModelPicture[MyData.ToldModels]; 840 840 ModelName[MyData.ToldModels + 1] := ModelName[MyData.ToldModels]; 841 ModelPicture[MyData.ToldModels].HGr := 0841 ModelPicture[MyData.ToldModels].HGr := HGrSystem 842 842 end; 843 if ModelPicture[MyData.ToldModels].HGr = 0then843 if ModelPicture[MyData.ToldModels].HGr = HGrSystem then 844 844 InitMyModel(MyData.ToldModels, true); 845 845 { only run if no researched model } … … 1042 1042 DraftDlg.ShowNewContent(wmModal); 1043 1043 if DraftDlg.ModalResult <> mrOK then 1044 Tribe[me].ModelPicture[MyRO.nModel].HGr := 01044 Tribe[me].ModelPicture[MyRO.nModel].HGr := HGrSystem 1045 1045 end; 1046 1046 until (ChosenResearch <> adMilitary) or (DraftDlg.ModalResult = mrOK); … … 1603 1603 for x := 0 to 11 do 1604 1604 for y := 0 to 1 do 1605 MiniColors[x, y] := GrExt[HGrSystem].Data.Canvas.Pixels[66 + x, 67 + y];1605 MiniColors[x, y] := HGrSystem.Data.Canvas.Pixels[66 + x, 67 + y]; 1606 1606 IsoEngine.Init(InitEnemyModel); 1607 1607 if not IsoEngine.ApplyTileSize(xxt, yyt) and ((xxt <> 48) or (yyt <> 24) or (xxt <> 72)) … … 2785 2785 ItsMeAgain(p1); 2786 2786 for mix := 0 to MyRO.nModel - 1 do 2787 if Tribe[me].ModelPicture[mix].HGr = 0then2787 if Tribe[me].ModelPicture[mix].HGr = HGrSystem then 2788 2788 InitMyModel(mix, true); 2789 2789 end; … … 3075 3075 begin 3076 3076 CurrentMoveInfo.DoShow := false; 3077 if not idle and (Tribe[Owner].ModelPicture[mix].HGr = 0) then3077 if not idle and (Tribe[Owner].ModelPicture[mix].HGr = HGrSystem) then 3078 3078 InitEnemyModel(emix); 3079 3079 … … 3270 3270 begin 3271 3271 ToLoc := dLoc(FromLoc, dx, dy); 3272 if Tribe[Owner].ModelPicture[mix].HGr = 0then3272 if Tribe[Owner].ModelPicture[mix].HGr = HGrSystem then 3273 3273 InitEnemyModel(emix); 3274 3274 … … 4073 4073 begin 4074 4074 if not Assigned(MyMap) then Exit; 4075 cmPolOcean := GrExt[HGrSystem].Data.Canvas.Pixels[101, 67];4076 cmPolNone := GrExt[HGrSystem].Data.Canvas.Pixels[102, 67];4075 cmPolOcean := HGrSystem.Data.Canvas.Pixels[101, 67]; 4076 cmPolNone := HGrSystem.Data.Canvas.Pixels[102, 67]; 4077 4077 hw := MapWidth div (xxt * 2); 4078 4078 with Mini.Canvas do begin … … 4400 4400 $FFFFFF, $B0B0B0); 4401 4401 BitBltCanvas(Panel.Canvas, ClientWidth - xPalace, yPalace, xSizeBig, 4402 ySizeBig, GrExt[HGrSystem2].Data.Canvas, 70, 123);4402 ySizeBig, HGrSystem2.Data.Canvas, 70, 123); 4403 4403 end 4404 4404 else if MyRO.NatBuilt[imPalace] > 0 then … … 4615 4615 BiColorTextWidth(Panel.Canvas, s) div 2, PanelHeight - 23, s); 4616 4616 4617 FrameImage(Panel.Canvas, GrExt[HGrSystem].Data,4617 FrameImage(Panel.Canvas, HGrSystem.Data, 4618 4618 xMidPanel + 7 + xUnitText, yTroop + 15, 12, 14, 4619 4619 121 + Exp div ExpCost * 13, 28); … … 5353 5353 MyRO.EnemyModel[emix].mix, MouseLoc) >= rExecuted) then 5354 5354 begin 5355 if Tribe[p1].ModelPicture[MyRO.EnemyModel[emix].mix].HGr = 0then5355 if Tribe[p1].ModelPicture[MyRO.EnemyModel[emix].mix].HGr = HGrSystem then 5356 5356 InitEnemyModel(emix); 5357 5357 m2 := TMenuItem.Create(m); … … 6436 6436 procedure TMainScreen.SetViewpoint(p: integer); 6437 6437 var 6438 i: integer;6438 i: Integer; 6439 6439 begin 6440 6440 if supervising and (G.RO[0].Turn > 0) and … … 6447 6447 SumCities(TaxSum, ScienceSum); 6448 6448 for i := 0 to MyRO.nModel - 1 do 6449 if Tribe[me].ModelPicture[i].HGr = 0then6450 InitMyModel(i, true);6449 if Tribe[me].ModelPicture[i].HGr = HGrSystem then 6450 InitMyModel(i, True); 6451 6451 6452 6452 SetTroopLoc(-1); 6453 6453 PanelPaint; 6454 MapValid := false;6454 MapValid := False; 6455 6455 PaintAllMaps; 6456 6456 end;
Note:
See TracChangeset
for help on using the changeset viewer.