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

« back to all changes in this revision

Viewing changes to src/player_type.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: player_type.h 11827 2008-01-13 00:28:01Z rubidium $ */
 
1
/* $Id: player_type.h 13735 2008-07-19 12:23:14Z rubidium $ */
2
2
 
3
3
/** @file player_type.h Types related to players. */
4
4
 
30
30
};
31
31
DECLARE_POSTFIX_INCREMENT(Owner);
32
32
 
 
33
enum {
 
34
        MAX_LENGTH_PRESIDENT_NAME = 31, ///< The maximum length for a president's name
 
35
        MAX_LENGTH_COMPANY_NAME   = 31, ///< The maximum length for a company's name
 
36
};
 
37
 
33
38
/** Define basic enum properties */
34
39
template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {};
35
40
typedef TinyEnumT<Owner> OwnerByte;