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

Clear minimap on level load #1207

Merged
merged 3 commits into from
Feb 10, 2024
Merged

Clear minimap on level load #1207

merged 3 commits into from
Feb 10, 2024

Conversation

chreden
Copy link
Owner

@chreden chreden commented Feb 10, 2024

The minimap wasn't being cleared on level load. VICT.TR2 made this obvious as it had no rooms to to be loaded, so the old room display was still there.

Now when the level loads the minimap is cleared. Some functions to access room info directly from the level have been removed as they are no longer used. It will now take it from the Sector instead of using inidces.

Closes #1206

By using the room property on the sector we can remove the need for the room_info functions on Level. They weren't safe anyway.
#1206
When level loads unload map renderer.
Don't render map renderer if unloaded.
#1206
Set level earlier so the room is cleared. Remove the exposed unload function, not needed
#1206
@chreden chreden added the bug label Feb 10, 2024
@chreden chreden added this to the Next milestone Feb 10, 2024
@chreden chreden self-assigned this Feb 10, 2024
@chreden chreden merged commit 1ed861c into master Feb 10, 2024
2 checks passed
@chreden chreden deleted the bug/1206 branch February 10, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening VICT.TR2 doesn't clear the minimap
2 participants