(svn r23506) -Add: [NoAI] Support for dealing with aircraft range.

This commit is contained in:
michi_cc
2011-12-13 00:43:59 +00:00
parent 34ffd08a19
commit a085ea9e4b
17 changed files with 179 additions and 24 deletions

View File

@@ -1855,6 +1855,7 @@ static void AircraftHandleDestTooFar(Aircraft *v, bool too_far)
if (!HasBit(v->flags, VAF_DEST_TOO_FAR)) {
SetBit(v->flags, VAF_DEST_TOO_FAR);
SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
AI::NewEvent(v->owner, new ScriptEventAircraftDestTooFar(v->index));
if (v->owner == _local_company) {
/* Post a news message. */
SetDParam(0, v->index);