nkzw-tech / athena-crisis

Athena Crisis is an Advance Wars inspired modern-retro turn-based tactical strategy game. Athena Crisis is open core technology.
https://athenacrisis.com/open-source
Other
1.37k stars 105 forks source link

[Bug] When placing a unit in map editor, the placed unit doesn't reflect the current player #27

Closed sookmax closed 1 month ago

sookmax commented 1 month ago

Hi, I've noticed the units no longer reflect the current player when placed in the map editor:

https://github.com/nkzw-tech/athena-crisis/assets/71210554/f06f39c1-32e3-4286-9130-dd5866ac73a3

I did some digging and found the commit that causes the problem: https://github.com/nkzw-tech/athena-crisis/commit/e893189689fb49dbfedfee54580ecc805e0feffd#diff-f7f9046324da075be3c9cebbfb7185d39a6d4daec6d6aa1ff219449106e1f1b4L524-R574

If you roll back to what it was in the above diff, it would work properly again.

Funding

Fund with Polar