mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator.
This commit is contained in:
parent
c81866fb8d
commit
2433ba042b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue