Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't update the map every time unit moves #106

Closed
axx0 opened this issue Feb 22, 2024 · 2 comments
Closed

Don't update the map every time unit moves #106

axx0 opened this issue Feb 22, 2024 · 2 comments

Comments

@axx0
Copy link
Owner

axx0 commented Feb 22, 2024

Map seems to be redrawn every time a unit moves, even if it moves within the view

@reubene
Copy link
Collaborator

reubene commented Mar 8, 2024

It shouldn't be line 49 in base game view recycles the base image and animations, if it's redrawing every new animation there is a bug of some kind

@axx0
Copy link
Owner Author

axx0 commented Mar 10, 2024

I believe IsInSameArea function is returning false when you move the unit and thus it redraws the map. I tried analyzing it some weeks ago but couldn't get to the bottom of it.

@axx0 axx0 closed this as completed in 2355f7a Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants