KnuckleCracker / CW4-bug-tracker

The gathering point for bugs and supporting information, or suggestions about additional features.
Creative Commons Attribution Share Alike 4.0 International
13 stars 2 forks source link

[Bug] 5x5 units can be placed in a way so they clip through each other using drag build #1057

Closed grabz-dev closed 1 year ago

grabz-dev commented 1 year ago

https://user-images.githubusercontent.com/51026936/183452030-fe0b58ce-8ae5-4bc6-a1c7-725ec4b16e1a.mp4

This works for all 5x5 units (e.g. Porter) image Does not work on 7x7 units.

knucracker commented 1 year ago

Fixed in 2.4.2. Changed the logic so it added extra padding on 5x5 units. Had to do with sqrt(55+55)=50 and integer cell distances (which worked out to 49 in this case). Also noted that custom units were totally wacked. Changed them to use the "-1" internal algorithm that calculates the proper placement distance. That should make custom unit drag placement better.