forked from mirror/OpenTTD
(svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode
This commit is contained in:
@@ -304,6 +304,7 @@ static const WindowDesc _build_road_desc = {
|
||||
|
||||
void ShowBuildRoadToolbar()
|
||||
{
|
||||
if (_current_player == OWNER_SPECTATOR) return;
|
||||
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
|
||||
AllocateWindowDesc(&_build_road_desc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user