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

Fix saving hexagonal maps to image #1738

Merged
merged 1 commit into from
Jan 15, 2023

Conversation

lmoureaux
Copy link
Contributor

The calculated image size was never exactly matched by a renderer update, resulting in the image never being saved. The stall temporary renderer was then blocking map updates. Only require the renderer update to be larger than the calculated size, which will always happen since we trigger a full update.

In addition, remove wrong size heuristics for iso-hex tilesets: they behave just like normal isometric tilesets.

Closes #1642.

Backport candidate since this ended up being a relatively easy fix.

The calculated image size was never exactly matched by a renderer update,
resulting in the image never being saved. The stall temporary renderer was then
blocking map updates. Only require the renderer update to be larger than the
calculated size, which will always happen since we trigger a full update.

In addition, remove wrong size heuristics for iso-hex tilesets: they behave
just like normal isometric tilesets.

Closes longturn#1642.
@jwrober jwrober merged commit 5b04e82 into longturn:master Jan 15, 2023
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

Successfully merging this pull request may close these issues.

Save map image not working for hex tiles
2 participants