fix suffix for teens

This commit is contained in:
Chris Danford
2005-03-06 00:06:21 +00:00
parent 547e827a86
commit 0091b6d1d4
+5
View File
@@ -1505,6 +1505,11 @@ void ScreenSelectMusic::AfterMusicChange()
case 3: sSuffix = "rd"; break;
default: sSuffix = "th"; break;
}
// hack for teens: "11th", "113th", etc.
if( ((iDisplay%100) / 10) == 1 )
sSuffix = "th";
m_MachineRank.SetText( ssprintf("%i", iDisplay) + sSuffix );
}