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: Fix overlapping text in look-around. #4156

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

richardnlarge
Copy link
Contributor

@richardnlarge richardnlarge commented Jan 24, 2024

Purpose of change

Lines of text within the look-around panel were being drawn on top of one another. Fixes #4140, Fixes #3945.

Describe the solution

Slightly reworked inconsistent line number accumulation/usage that was leading to overlap. In the whole call tree of the game::print_all_tile_info function, only game::print_terrain_info and game::print_visibility_info appeared to be problematic.

Testing

Started a new character and looked around at lighted tiles, dark tiles, tiles with stuff on them, with an NPC, etc. Seemed okay.

Lines were being drawn on top of one another, making text unreadable.

fixes cataclysmbnteam#4140, fixes cataclysmbnteam#3945
@github-actions github-actions bot added the src changes related to source code. label Jan 24, 2024
"point" constructor takes (x, y) and was being fed (y, x).
@chaosvolt chaosvolt merged commit 273f510 into cataclysmbnteam:main Jan 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Light information covers other text in the sidebar The letters are truncated in the Look Around pane.
2 participants