~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/newgrf_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2008-08-08 11:07:05 UTC
  • mfrom: (1.1.4 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080808110705-zq0eo95c4pexg70i
* New upstream release.
  - Fixes remote crash vulnerability CVE-2008-3547. Closes: #493714

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: newgrf_config.h 11704 2007-12-26 23:04:26Z rubidium $ */
 
1
/* $Id: newgrf_config.h 13827 2008-07-25 19:54:14Z rubidium $ */
2
2
 
3
3
/** @file newgrf_config.h */
4
4
 
26
26
        GCS_ACTIVATED     ///< GRF file has been activated
27
27
};
28
28
 
29
 
enum GRFListCompatibility{
 
29
/** Encountered GRF bugs */
 
30
enum GRFBugs {
 
31
        GBUG_VEH_LENGTH,  ///< Length of rail vehicle changes when not inside a depot
 
32
};
 
33
 
 
34
/** Status of post-gameload GRF compatibility check */
 
35
enum GRFListCompatibility {
30
36
        GLC_ALL_GOOD,
31
37
        GLC_COMPATIBLE,
32
38
        GLC_NOT_FOUND
52
58
        char *info;
53
59
        GRFError *error;
54
60
 
55
 
        uint8 flags;
56
 
        GRFStatus status;
57
 
        uint32 param[0x80];
58
 
        uint8 num_params;
 
61
        uint8 flags;        ///< NOSAVE: GCF_Flags, bitset
 
62
        GRFStatus status;   ///< NOSAVE: GRFStatus, enum
 
63
        uint32 grf_bugs;    ///< NOSAVE: bugs in this GRF in this run, @see enum GRFBugs
 
64
        uint32 param[0x80]; ///< GRF parameters
 
65
        uint8 num_params;   ///< Number of used parameters
59
66
 
60
67
        struct GRFConfig *next;
61
68