mirror of https://github.com/OpenTTD/OpenTTD
(svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator.
parent
c81866fb8d
commit
2433ba042b
|
@ -193,8 +193,8 @@ void ShowHighscoreTable(int difficulty, int8 ranking)
|
||||||
* if it was high enough */
|
* if it was high enough */
|
||||||
void ShowEndGameChart()
|
void ShowEndGameChart()
|
||||||
{
|
{
|
||||||
/* Dedicated server doesn't need the highscore window */
|
/* Dedicated server doesn't need the highscore window and neither does -v null. */
|
||||||
if (_network_dedicated) return;
|
if (_network_dedicated || (!_networking && !IsValidCompanyID(_local_company))) return;
|
||||||
|
|
||||||
HideVitalWindows();
|
HideVitalWindows();
|
||||||
DeleteWindowByClass(WC_ENDSCREEN);
|
DeleteWindowByClass(WC_ENDSCREEN);
|
||||||
|
|
Loading…
Reference in New Issue