(svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator.

This commit is contained in:
rubidium 2009-02-23 01:51:19 +00:00
parent c81866fb8d
commit 2433ba042b
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ void ShowHighscoreTable(int difficulty, int8 ranking)
* if it was high enough */
void ShowEndGameChart()
{
/* Dedicated server doesn't need the highscore window */
if (_network_dedicated) return;
/* Dedicated server doesn't need the highscore window and neither does -v null. */
if (_network_dedicated || (!_networking && !IsValidCompanyID(_local_company))) return;
HideVitalWindows();
DeleteWindowByClass(WC_ENDSCREEN);