mirror of https://github.com/OpenTTD/OpenTTD
(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure building menus.
parent
51f773bd16
commit
537064d010
|
@ -2554,6 +2554,7 @@ bool CanBuildVehicleInfrastructure(VehicleType type)
|
||||||
{
|
{
|
||||||
assert(IsPlayerBuildableVehicleType(type));
|
assert(IsPlayerBuildableVehicleType(type));
|
||||||
|
|
||||||
|
if (!IsValidPlayer(_current_player)) return false;
|
||||||
if (_patches.always_build_infrastructure) return true;
|
if (_patches.always_build_infrastructure) return true;
|
||||||
|
|
||||||
UnitID max;
|
UnitID max;
|
||||||
|
|
Loading…
Reference in New Issue