chiark / gitweb /
script: When lowering, avoid raising
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Jul 2021 22:17:17 +0000 (23:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Jul 2021 00:24:04 +0000 (01:24 +0100)
commitba3367615ff6854114cca02823430974d8aa1bef
tree6616cab9bb723788f743a7f3589414fea08da96d
parent053ebbdce59513d65c45a284683cf52ebd94919a
script: When lowering, avoid raising

It can happen that the z of the piece which sets the z_top for the end
of the plan (with z_bot == null) will cause the first lowered piece to
actually be raised.

This is particularly troublesome if the piece is an occulting one,
which the server will not allowe to be raised.

Handle this case specially: if necessary, set the z_top to top piece
of that plan entry.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts