Skip to content

Commit

Permalink
Add missing BUG combat help (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
VDuchauffour authored Oct 18, 2024
1 parent db2a0c2 commit 3b83c52
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Binary file modified Assets/CvGameCoreDLL.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/XML/GlobalDefinesVersion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<Civ4Defines xmlns="x-schema:CIV4GlobalDefinesSchema.xml">
<Define>
<DefineName>RFCE_MOD_VERSION</DefineName>
<DefineTextVal>1.6.5-5</DefineTextVal>
<DefineTextVal>1.6.5-6</DefineTextVal>
</Define>
</Civ4Defines>
13 changes: 13 additions & 0 deletions CvGameCoreDLL/CvGameTextMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,19 @@ void CvGameTextMgr::setUnitHelp(CvWStringBuffer &szString, const CvUnit *pUnit,
bool bShift = gDLL->shiftKey();
bool bAlt = gDLL->altKey();

//KNOEDELstart
//FlavourMod: Added by Jean Elcard (display unit combat symbol in unit tool tip) - integrated into BUG by Tholal
if (getBugOptionBOOL("MainInterface__UnitCombatIcons", true, "BUG_UNIT_COMBAT_ICONS"))
{
if (pUnit->getUnitCombatType() != NO_UNITCOMBAT)
{
szTempBuffer.Format(L"<img=%S size=16></img> ", GC.getUnitCombatInfo(pUnit->getUnitCombatType()).getButton());
szString.append(szTempBuffer);
}
}
//FlavourMod: End
//KNOEDELend

szTempBuffer.Format(SETCOLR L"%s" ENDCOLR, TEXT_COLOR("COLOR_UNIT_TEXT"), pUnit->getName().GetCString());
szString.append(szTempBuffer);

Expand Down

0 comments on commit 3b83c52

Please sign in to comment.