Changeset 401 for trunk/LocalPlayer
- Timestamp:
- Nov 2, 2021, 9:25:33 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r348 r401 1007 1007 end; 1008 1008 1009 if ShowObjects then 1010 begin 1011 if (Tile and fCanal <> 0) or (Tile and fCity <> 0) then 1012 begin // paint canal connections 1009 if ShowObjects then begin 1010 // Paint canal connections 1011 if (Tile and fCanal <> 0) or (Tile and fCity <> 0) then begin 1013 1012 Conn := Connection8(Loc, fCanal or fCity); 1014 1013 if Tile and fCanal <> 0 then 1015 1014 Conn := Conn or ($FF - OceanConnection(Loc)); 1016 if Conn = 0 then 1017 begin 1015 if Conn = 0 then begin 1018 1016 if Tile and fCanal <> 0 then 1019 TSprite(x, y, spCanal) 1017 TSprite(x, y, spCanal); 1020 1018 end 1021 1019 else … … 1024 1022 TSprite(x, y, spCanal + 1 + Dir); 1025 1023 end; 1024 1026 1025 if Tile and (fRR or fCity) <> 0 then 1027 1026 RRConn := Connection8(Loc, fRR or fCity) 1028 1027 else 1029 1028 RRConn := 0; 1030 if Tile and (fRoad or fRR or fCity) <> 0 then 1031 begin // paint road connections 1029 1030 // Paint road connections 1031 if Tile and (fRoad or fRR or fCity) <> 0 then begin 1032 1032 Conn := Connection8(Loc, fRoad or fRR or fCity) and not RRConn; 1033 1033 if (Conn = 0) and (Tile and (fRR or fCity) = 0) then … … 1038 1038 TSprite(x, y, spRoad + 1 + Dir); 1039 1039 end; 1040 // paint railroad connections 1040 1041 // Paint railroad connections 1041 1042 if (Tile and fRR <> 0) and (RRConn = 0) then 1042 1043 TSprite(x, y, spRailRoad) 1043 else if RRConn > 0 then 1044 else if RRConn > 0 then begin 1044 1045 for Dir := 0 to 7 do 1045 1046 if (1 shl Dir) and RRConn <> 0 then 1046 1047 TSprite(x, y, spRailRoad + 1 + Dir); 1048 end; 1047 1049 end; 1048 1050 end;
Note:
See TracChangeset
for help on using the changeset viewer.