File diff r4260:59348b953ade → r4261:8c2d0c75e37a
oldloader.c
Show inline comments
 
/* $Id$ */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "station_map.h"
 
#include "table/strings.h"
 
#include "functions.h"
 
#include "map.h"
 
#include "town.h"
 
#include "industry.h"
 
#include "station.h"
 
#include "economy.h"
 
#include "player.h"
 
#include "engine.h"
 
#include "vehicle.h"
 
#include "signs.h"
 
#include "debug.h"
 
#include "depot.h"
 
#include "network.h"
 
#include "ai/ai.h"
 
#include "date.h"
 

	
 
enum {
 
	HEADER_SIZE = 49,
 
	BUFFER_SIZE = 4096,
 

	
 
	OLD_MAP_SIZE = 256 * 256
 
};
 

	
 
typedef struct LoadgameState {
 
	FILE *file;
 

	
 
	uint chunk_size;
 

	
 
	bool decoding;
 
	byte decode_char;
 

	
 
	uint buffer_count;
 
	uint buffer_cur;
 
	byte buffer[BUFFER_SIZE];
 

	
 
	uint total_read;
 
	bool failed;
 
} LoadgameState;