From de1dc6828d00ae35f20d204b259e1b112efa67b8 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sun, 19 Feb 2017 22:11:54 +0800 Subject: [PATCH] try to fix phase name sometimes its invalid phase name --- projects/mtg/src/GuiPhaseBar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/GuiPhaseBar.cpp b/projects/mtg/src/GuiPhaseBar.cpp index e7a34f3bb..f9c5b6118 100644 --- a/projects/mtg/src/GuiPhaseBar.cpp +++ b/projects/mtg/src/GuiPhaseBar.cpp @@ -146,7 +146,8 @@ void GuiPhaseBar::Render() //running this string through translate returns gibberish even though we defined the variables in the lang.txt //the conversion from phase bar phases to mtg phases is x%kPhases + 1 //todo: just to this when the displayedPhaseId updates - string phaseNameToTranslate = observer->phaseRing->phaseName(displayedPhaseId%kPhases + 1); + //string phaseNameToTranslate = observer->phaseRing->phaseName(displayedPhaseId%kPhases + 1); + string phaseNameToTranslate = observer->phaseRing->phaseName(observer->phaseRing->getCurrentPhase()->id); phaseNameToTranslate = _(phaseNameToTranslate); sprintf(buf, _("(%s%s) %s").c_str(), currentP.c_str(), interrupt.c_str(),phaseNameToTranslate.c_str()); #if !defined (PSP)