mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 19:09:09 +00:00
(svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user