-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
fix compilation for clang #785
Conversation
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.
There were multiple attempts to fix that before. (see linked pull requests to issue #289)
3 of 5 pull requests were removing problem_solver_inline.h
include from problem_solver.h
and reincluding it into files in xrGame. It is wrong way to fix the issue.
Correct way to fix the issue is to move xrAICore dependencies from xrGame to xrAICore.
@@ -149,4 +149,3 @@ class CProblemSolver | |||
virtual void clear(); | |||
}; | |||
|
|||
#include "xrAICore/Components/problem_solver_inline.h" |
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.
This is not going to be allowed in any way.
@@ -403,7 +403,7 @@ void InventoryUtilities::UpdateWeight(CUIStatic& wnd, CInventoryOwner* pInvOwner | |||
string32 prefix; | |||
|
|||
if (withPrefix) | |||
xr_sprintf(prefix, "%%c[default]%s ", StringTable().translate("ui_inv_weight")); | |||
xr_sprintf(prefix, "%%c[default]%s ", StringTable().translate("ui_inv_weight").c_str()); |
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.
It is better to move it into another pull request, so we can merge this piece of code already.
@@ -221,7 +221,7 @@ void CUIRankingWnd::add_achievement(CUIXml& xml, shared_str const& achiev_id) | |||
{ | |||
if (!pSettings->section_exist(achiev_id)) | |||
{ | |||
Msg("~ Achievement section [%s] does not exist!", achiev_id); | |||
Msg("~ Achievement section [%s] does not exist!", achiev_id.c_str()); |
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.
It is better to move it into another pull request, so we can merge this piece of code already.
кланголожцы возрадуйтесь