atc - Fix bug related to delayed command and altitude change
authorMatthias Schmidt <matthias@dragonflybsd.org>
Sun, 20 Dec 2009 09:05:20 +0000 (10:05 +0100)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Sun, 20 Dec 2009 09:05:20 +0000 (10:05 +0100)
commit6a10a276cd1ad45b92f588da6ecc24f4a38bb99a
treeb84040b401368d4ca76b0523cd96464a33b76daa
parent89adea1539ab67184124a82cc811031f3334024f
atc - Fix bug related to delayed command and altitude change

When playing atc, if a plane has a delayed turn command, and you issue
an altitude command that would send the plane to the same altitude to
which it is already going, the delay is disabled and the plane turns
immediately.

Fix is from OpenBSD (PR 3448).

Discussed-with: swildner@
Provided-by: 26c3
games/atc/input.c