(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure building menus.

This commit is contained in:
maedhros
2007-08-06 11:58:15 +00:00
parent f09ebb5ec2
commit b17975d1f2

View File

@@ -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;