-
Notifications
You must be signed in to change notification settings - Fork 62
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
Implement some SkirmishBattleHonors #1126
Conversation
Oh nice. I will get to review today. |
str = g_theGameText->Fetch("TOOLTIP:BattleHonors", nullptr); | ||
g_theMouse->Set_Cursor_Tooltip(str, -1, 0, 1.0f); | ||
} else if (honor != 0) { | ||
if (honor & 0x8000000) { // not earned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there perhaps an enum value missing for 1<<27 in SkirmishBattleHonorsTooltips?
Code wise looks good to me. I will take a look at it ingame later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
I tested before/after at different resolutions so that went over my head, fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Can I run format check locally so we don't have to drag this any more? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting check is failing. You need to apply clang format, with version 10.0.0 (as part of LLVM). If you are using Visual Studio, you can refer to custom clang-format exe in settings page, otherwise it uses clang-format as part of Visual Studio distribution.
|
str = g_theGameText->Fetch("TOOLTIP:BattleHonorLoyaltyUSA", nullptr); | ||
g_theMouse->Set_Cursor_Tooltip(str, -1, nullptr, 1.5f); | ||
} | ||
if (honor & LOYALTY_CHINA) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be else if
? And below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Should be good to go now.
No description provided.