Changeset 88 for trunk/LocalPlayer
- Timestamp:
- Jan 18, 2017, 4:22:26 PM (8 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r86 r88 653 653 Picture.pix := pixNoSlaves; 654 654 Picture.Hash := 0; 655 Picture.GrName := 'StdUnits ';655 Picture.GrName := 'StdUnits.png'; 656 656 IsNew := true; 657 657 end … … 673 673 with Tribe[p].ModelPicture[mix] do 674 674 begin 675 HGr := LoadGraphicSet(Picture.GrName + '.png');675 HGr := LoadGraphicSet(Picture.GrName); 676 676 pix := Picture.pix; 677 677 end; … … 1709 1709 pix := pixNoSlaves; 1710 1710 Hash := 0; 1711 GrName := 'StdUnits ';1711 GrName := 'StdUnits.png'; 1712 1712 Tribe[p1].SetModelPicture(Picture, true); 1713 1713 end -
trunk/LocalPlayer/Tribes.pas
r73 r88 477 477 dec(i); 478 478 assert(i >= 0); 479 assert(PictureList[i].HGr = LoadGraphicSet(GrName + '.png'));479 assert(PictureList[i].HGr = LoadGraphicSet(GrName)); 480 480 assert(PictureList[i].pix = pix); 481 481 ModelPicture[mix].HGr := PictureList[i].HGr; … … 487 487 with ModelPicture[mix] do 488 488 begin 489 HGr := LoadGraphicSet(GrName + '.png');489 HGr := LoadGraphicSet(GrName); 490 490 pix := Info.pix; 491 491 inc(GrExt[HGr].pixUsed[pix]); … … 596 596 LeastUsed := MaxInt; 597 597 598 TestPic.GrName := 'StdUnits ';598 TestPic.GrName := 'StdUnits.png'; 599 599 HGr := HGrStdUnits; 600 600 for i := 0 to StdUnitScript.Count - 1 do … … 611 611 begin 612 612 ok := true; 613 TestPic.GrName := Copy(Input, 8, 255) ;613 TestPic.GrName := Copy(Input, 8, 255) + '.png'; 614 614 HGr := nGrExt - 1; 615 615 while (HGr >= 0) and (GrExt[HGr].Name <> TestPic.GrName) do
Note:
See TracChangeset
for help on using the changeset viewer.