1
0
Fork 0

Position tower on canvas map at the correct place, not at the airport center

This commit is contained in:
Christian Schmitt 2013-03-01 17:16:01 +01:00
parent 0484849b67
commit 312862271d
2 changed files with 2 additions and 3 deletions

View file

@ -6,8 +6,6 @@ var draw_runways = func(group, apt,lod) {
# group = group.createChild("group", "runways");
foreach(var rw1; apt.runwaysWithoutReciprocals())
{
rw2 = rw1.reciprocal;
var clr = SURFACECOLORS[rw1.surface];
if (clr == nil) { clr = SURFACECOLORS[0]};
@ -24,6 +22,7 @@ var draw_runways = func(group, apt,lod) {
var beg1 = rwy1.pointOffCenterline(0, 0.5 * rw1.width);
var beg2 = rwy1.pointOffCenterline(0, -0.5 * rw1.width);
var rw2 = rw1.reciprocal;
var rwy2 = Runway.new(rw2);
var end_thr = rwy2.pointOffCenterline(rw2.threshold);
var end_thr1 = rwy2.pointOffCenterline(rw2.threshold, 0.5 * rw2.width);

View file

@ -14,6 +14,6 @@ var draw_tower = func (group, apt,lod) {
.line(-3, 10)
.vert(10);
icon_tower.setGeoPosition(apt.lat, apt.lon);
icon_tower.setGeoPosition(apt.tower().lat, apt.tower().lon);
}