Airport sign size 3 bugfix
This commit is contained in:
committed by
ThorstenB
parent
3407db3dd6
commit
de3d433ead
@@ -373,7 +373,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s
|
|||||||
n = n.substr(0, 2);
|
n = n.substr(0, 2);
|
||||||
}
|
}
|
||||||
if (n == "@Y") {
|
if (n == "@Y") {
|
||||||
if (size < 3) {
|
if (size <= 3) {
|
||||||
sign_height = HT[size < 0 ? 3 : size];
|
sign_height = HT[size < 0 ? 3 : size];
|
||||||
newmat = "YellowSign";
|
newmat = "YellowSign";
|
||||||
newtype = 'Y';
|
newtype = 'Y';
|
||||||
@@ -381,7 +381,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (n == "@R") {
|
} else if (n == "@R") {
|
||||||
if (size < 3) {
|
if (size <= 3) {
|
||||||
sign_height = HT[size < 0 ? 3 : size];
|
sign_height = HT[size < 0 ? 3 : size];
|
||||||
newmat = "RedSign";
|
newmat = "RedSign";
|
||||||
newtype = 'R';
|
newtype = 'R';
|
||||||
@@ -389,7 +389,7 @@ void AirportSignBuilder::addSign(const SGGeod& pos, double heading, const std::s
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (n == "@L") {
|
} else if (n == "@L") {
|
||||||
if (size < 3) {
|
if (size <= 3) {
|
||||||
sign_height = HT[size < 0 ? 3 : size];
|
sign_height = HT[size < 0 ? 3 : size];
|
||||||
newmat = "FramedSign";
|
newmat = "FramedSign";
|
||||||
newtype = 'L';
|
newtype = 'L';
|
||||||
|
|||||||
Reference in New Issue
Block a user