Changeset 328 for trunk/CityProcessing.pas
- Timestamp:
- Mar 25, 2021, 3:02:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CityProcessing.pas
r319 r328 292 292 begin { improvement project } 293 293 result := Imp[Project and cpIndex].Cost; 294 if (Project and cpIndex < 28) and (GWonder[woColossus].EffectiveOwner = p)294 if (Project and cpIndex < nWonder) and (GWonder[woColossus].EffectiveOwner = p) 295 295 then 296 296 result := result * ColossusEffect div 100; … … 370 370 BaseHappiness := Size; 371 371 end; 372 for i := 0 to 27do372 for i := 0 to nWonder - 1 do 373 373 if Built[i] = 1 then 374 374 begin … … 773 773 begin 774 774 with RW[p], City[cix] do 775 for i := 28to nImp - 1 do775 for i := nWonder to nImp - 1 do 776 776 if (Built[i] > 0) and (Project0 and (cpImp or cpIndex) <> (cpImp or i)) 777 777 then // don't pay maintenance when just completed … … 971 971 972 972 // check if wonder already built 973 if (Project and cpImp <> 0) and (Project and cpIndex < 28) and973 if (Project and cpImp <> 0) and (Project and cpIndex < nWonder) and 974 974 (GWonder[Project and cpIndex].CityID <> WonderNotBuiltYet) then 975 975 begin … … 1050 1050 end; 1051 1051 1052 if NewImp < 28then1052 if NewImp < nWonder then 1053 1053 begin // wonder 1054 1054 GWonder[NewImp].CityID := ID; … … 1060 1060 woEiffel: 1061 1061 begin // reactivate wonders 1062 for i := 0 to 27do1062 for i := 0 to nWonder - 1 do 1063 1063 if Imp[i].Expiration >= 0 then 1064 1064 for cix2 := 0 to nCity - 1 do … … 1303 1303 dxdy(Loc, Loc1, dx, dy); 1304 1304 dec(SubCriterion[(dy + 3) shl 2 + (dx + 3) shr 1], 160); 1305 end 1306 end 1307 end 1308 end 1305 end; 1306 end; 1307 end; 1308 end; 1309 1309 end; 1310 1310 … … 1414 1414 Hierarchy[iH, iT].Trade := TileInfo.Trade; 1415 1415 Hierarchy[iH, iT].SubValue := SubCriterion[V21]; 1416 end 1416 end; 1417 1417 end; 1418 1418 if NeedRare <> 0 then
Note:
See TracChangeset
for help on using the changeset viewer.