1
0
Fork 0

Runway objects: do not add empty light objects that lead to a SG warning

This commit is contained in:
Christian Schmitt 2012-10-28 12:59:28 +01:00
parent 9587d6d292
commit a5d1035717

View file

@ -106,6 +106,7 @@ void LightingObj::BuildBtg( superpoly_list* lights )
else if (type == 4)
{
SG_LOG(SG_GENERAL, SG_DEBUG, "Space Shuttle PAPI is deprecated. Use the normal PAPI and set the glideslope accordingly");
return;
}
else if (type == 5)
{
@ -118,6 +119,7 @@ void LightingObj::BuildBtg( superpoly_list* lights )
else
{
SG_LOG(SG_GENERAL, SG_ALERT, "Unknown lighting object (PAPI/VASI...) code: " << type);
return;
}
TGPolygon lights_poly; lights_poly.erase();