Changeset - r2616:df3fbe486e0a
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2005-11-07 17:31:21
darkvater@openttd.org
(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
players.c
Show inline comments
 
@@ -919,7 +919,7 @@ static const StringID _endgame_perf_titl
 
StringID EndGameGetPerformanceTitleFromValue(uint value)
 
{
 
	value = minu(value, 1000) >> 6;
 
	if (value >= lengthof(_endgame_perf_titles)) value = lengthof(_endgame_perf_titles);
 
	if (value >= lengthof(_endgame_perf_titles)) value = lengthof(_endgame_perf_titles) - 1;
 

	
 
	return _endgame_perf_titles[value];
 
}
0 comments (0 inline, 0 general)