(svn r28004) -Update from Eints:
[openttd.git] / src / saveload / airport_sl.cpp
blob1172d2593eb5a38acdba3c3c4ce64c452e516ab1
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file airport_sl.cpp Code handling saving and loading airport ids */
12 #include "../stdafx.h"
14 #include "saveload.h"
15 #include "newgrf_sl.h"
17 #include "../safeguards.h"
19 static void Save_APID()
21 Save_NewGRFMapping(_airport_mngr);
24 static void Load_APID()
26 Load_NewGRFMapping(_airport_mngr);
29 static void Save_ATID()
31 Save_NewGRFMapping(_airporttile_mngr);
34 static void Load_ATID()
36 Load_NewGRFMapping(_airporttile_mngr);
39 extern const ChunkHandler _airport_chunk_handlers[] = {
40 { 'ATID', Save_ATID, Load_ATID, NULL, NULL, CH_ARRAY },
41 { 'APID', Save_APID, Load_APID, NULL, NULL, CH_ARRAY | CH_LAST },