Skip to content

Commit

Permalink
Merge pull request #77 from CommitteeOfZero/hotfix/clear-name-glyphs
Browse files Browse the repository at this point in the history
Forgot to clear the name
  • Loading branch information
KKhanhH authored Oct 14, 2024
2 parents 66c995d + 7ee71c6 commit cbd784c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/games/mo6tw/systemmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ void SystemMenu::Update(float dt) {
UpdateInput();

FadeAnimation.Update(dt);
if (GetFlag(SF_SYSTEMMENU) && State == Hidden) {
Show();
}
if (ScrWork[SW_SYSMENUALPHA] < 256 && State == Shown) {
Hide();
}
Expand Down
1 change: 1 addition & 0 deletions src/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ void DialoguePage::Init() {
void DialoguePage::Clear() {
Glyphs.clear();
NameLength = 0;
Name.clear();
HasName = false;
memset(RubyChunks, 0, sizeof(RubyChunk) * DialogueMaxRubyChunks);
RubyChunkCount = 0;
Expand Down

0 comments on commit cbd784c

Please sign in to comment.