rajko-horvat / OpenCiv1

Open source rewrite of the original Civilization 1 Game designed by Sid Meier and Bruce Shelley in year 1991
MIT License
233 stars 11 forks source link

Unworked city tile #51

Closed hadabascus closed 5 months ago

hadabascus commented 5 months ago

Clicking on an unworked tile in the city screen makes the city tile unworked. CIVIL0.zip scrn1 scrn2

rajko-horvat commented 5 months ago

I could not reproduce the same bug with provided save game data in the current 'Transfer-unmanaged-data-to-managed-and-code-cleanup' branch.

hadabascus commented 5 months ago

Oops, I forgot to try on that branch.

Trying to build from the latest commit (4694467fc4bd0faa0ed9aa8a6231d1fc97bafa32) using

dotnet build -c Release

seems to fail with

.../OpenCiv1/src/UI/MainWindow.axaml.cs(571,14): error CS1061: 'MainWindow' does not contain a definition for 'oGame' and no accessible extension method 'oGame' accepting a first argument of type 'MainWindow' could be found (are you missing a using directive or an assembly reference?) [.../OpenCiv1/src/OpenCiv1.csproj]

The latest commit that builds successfully for me is 6f580dc19dc41eaa02d464398623a422f00a80a0. Commits fdd017f6ca2068c61298454d0e39660565af9383 and 4694467fc4bd0faa0ed9aa8a6231d1fc97bafa32 error in building.

rajko-horvat commented 5 months ago

Sorry, forgot to check 'Release' configuration, fixed...

hadabascus commented 5 months ago

Great. All works now.

hadabascus commented 5 months ago

Settlers cannot be built anymore, it seems, scrn

rajko-horvat commented 5 months ago

Just discovered that I have a bug in Technology tree, will fix it soon :)

rajko-horvat commented 5 months ago

Fixed... :)