Skip to content

Commit

Permalink
fix window titles
Browse files Browse the repository at this point in the history
  • Loading branch information
daelsepara committed Jun 3, 2021
1 parent 00378bc commit 07ee398
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/HeartOfIce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4484,7 +4484,14 @@ bool processStory(SDL_Window *window, SDL_Renderer *renderer, Character::Base &p
}
else
{
SDL_SetWindowTitle(window, (std::string("Heart of Ice: ") + std::to_string(story->ID)).c_str());
if (story->ID > 0)
{
SDL_SetWindowTitle(window, (std::string("Heart of Ice: ") + std::string(3 - std::to_string(story->ID).length(), '0') + std::to_string(story->ID)).c_str());
}
else
{
SDL_SetWindowTitle(window, "Heart of Ice");
}
}

fillWindow(renderer, intWH);
Expand Down

0 comments on commit 07ee398

Please sign in to comment.