mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Clear font_positions if there is no font.txt
This fixes a bug where font_positions wouldn't get cleared after exiting a custom level that had a font.txt if it didn't exist in the default graphics, leading to messed-up-looking font rendering. This bug was originally discovered by Ally.
This commit is contained in:
parent
96be0fc7a9
commit
2e78eab92f
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ void Graphics::Makebfont()
|
|||
++pos;
|
||||
}
|
||||
FILESYSTEM_freeMemory(&charmap);
|
||||
} else {
|
||||
font_positions.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue