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

« back to all changes in this revision

Viewing changes to src/currency.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: currency.h 11828 2008-01-13 01:21:35Z rubidium $ */
 
1
/* $Id: currency.h 15718 2009-03-15 00:32:18Z rubidium $ */
2
2
 
3
 
/** @file currency.h */
 
3
/** @file currency.h Functions to handle different currencies. */
4
4
 
5
5
#ifndef CURRENCY_H
6
6
#define CURRENCY_H
11
11
enum {
12
12
        CF_NOEURO = 0,
13
13
        CF_ISEURO = 1,
14
 
        NUM_CURRENCY = 28,
 
14
        NUM_CURRENCY = 29,
15
15
        CUSTOM_CURRENCY_ID = NUM_CURRENCY - 1
16
16
};
17
17
 
37
37
 
38
38
extern CurrencySpec _currency_specs[NUM_CURRENCY];
39
39
 
40
 
// XXX small hack, but makes the rest of the code a bit nicer to read
 
40
/* XXX small hack, but makes the rest of the code a bit nicer to read */
41
41
#define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
42
 
#define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
 
42
#define _currency ((const CurrencySpec*)&_currency_specs[_game_mode == GM_MENU ? _settings_newgame.locale.currency : _settings_game.locale.currency])
43
43
 
44
44
uint GetMaskOfAllowedCurrencies();
45
45
void CheckSwitchToEuro();
46
46
void ResetCurrencies(bool preserve_custom = true);
47
 
StringID* BuildCurrencyDropdown();
 
47
StringID *BuildCurrencyDropdown();
48
48
byte GetNewgrfCurrencyIdConverted(byte grfcurr_id);
49
49
 
50
50
#endif /* CURRENCY_H */