bvschaik / julius

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
2.79k stars 311 forks source link

[Visual bug] Misaligned image layers #720

Open Ouaz opened 7 months ago

Ouaz commented 7 months ago

Nitpicky visual bugs (happens on vanilla C3 too): image layers of some working buildings are slightly shifted compared to the same buildings when inactive.

To reproduce, simply switch between Global Entertainment overlay and City map (these 2 happen on Augustus too).


crudelios commented 7 months ago

I think the Theater is also misaligned in Julius, can you confirm please?

bvschaik commented 7 months ago

The problem with fixing these is that the offsets are inside the SG2 files. Not sure how Augustus fixed those -- by hardcoding image ID + x/y offset in the code?

Ouaz commented 7 months ago

Not sure how Augustus fixed those -- by hardcoding image ID + x/y offset in the code?

Found the commit that fixed the roof of active Engineer's post: https://github.com/Keriew/augustus/commit/2923909686013204dee49d33efd3f8ebc1138ab8 Amphitheater and Lion Pit have not been fixed.

I think the Theater is also misaligned in Julius, can you confirm please?

I see nothing wrong with the Theater. All's good.

crudelios commented 7 months ago

The problem with fixing these is that the offsets are inside the SG2 files. Not sure how Augustus fixed those -- by hardcoding image ID + x/y offset in the code?

Yes the changes were hard coded. Not the best solution but it works!

crudelios commented 4 months ago

Should we fix this? (doing it manually on core/image.c) or do I keep this to Augustus?

bvschaik commented 4 months ago

Tough one. It does look better if fixed, even though the fix itself is quite ugly... Let's go ahead and fix.