diff options
author | celestar <celestar@openttd.org> | 2007-03-29 13:52:34 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-03-29 13:52:34 +0000 |
commit | a1ab0d29fe5d5f0e5b90cc0908837f6b301d32f7 (patch) | |
tree | 37ea5878b75e7b5f0193b94c6d3c2aa3e1e9b498 /src/airport_movement.h | |
parent | 386e298acd7855feb54d7b75ce0e3144db487649 (diff) | |
download | openttd-a1ab0d29fe5d5f0e5b90cc0908837f6b301d32f7.tar.xz |
(svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)
Diffstat (limited to 'src/airport_movement.h')
-rw-r--r-- | src/airport_movement.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/airport_movement.h b/src/airport_movement.h index 53d6174d5..02e5fef26 100644 --- a/src/airport_movement.h +++ b/src/airport_movement.h @@ -17,6 +17,14 @@ struct AirportFTAbuildup { /////////////////////////////////////////////////////////////////////// /////*********Movement Positions on Airports********************/////// + +static const AirportMovingData _airport_moving_data_dummy[] = { + { 0, 0, AMED_NOSPDCLAMP | AMED_SLOWTURN, {DIR_N} }, + { 0, 96, AMED_NOSPDCLAMP | AMED_SLOWTURN, {DIR_N} }, + { 96, 96, AMED_NOSPDCLAMP | AMED_SLOWTURN, {DIR_N} }, + { 96, 0, AMED_NOSPDCLAMP | AMED_SLOWTURN, {DIR_N} }, +}; + // Country Airfield (small) 4x3 static const AirportMovingData _airport_moving_data_country[22] = { { 53, 3, AMED_EXACTPOS, {DIR_SE} }, // 00 In Hangar @@ -376,6 +384,15 @@ static const AirportMovingData _airport_moving_data_oilrig[9] = { /////////////////////////////////////////////////////////////////////// /////**********Movement Machine on Airports*********************/////// +static const byte _airport_entries_dummy[] = {0, 1, 2, 3}; +static const AirportFTAbuildup _airport_fta_dummy[] = { + { 0, 0, 0, 3}, + { 1, 0, 0, 0}, + { 2, 0, 0, 1}, + { 3, 0, 0, 2}, + { MAX_ELEMENTS, 0, 0, 0 } // end marker. DO NOT REMOVE +}; + /* First element of terminals array tells us how many depots there are (to know size of array) * this may be changed later when airports are moved to external file */ static const TileIndexDiffC _airport_depots_country[] = {{3, 0}}; |