bvschaik / julius

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

[Visual bug] Misaligned image layers #720

Open Ouaz opened 9 months ago

Ouaz commented 9 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 9 months ago

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

bvschaik commented 9 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 9 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 9 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 7 months ago

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

bvschaik commented 7 months ago

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