summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-07 12:41:57 +0000
committertron <tron@openttd.org>2005-08-07 12:41:57 +0000
commit14e80ca15968476fffdbc64c5dc5edae9145c0d8 (patch)
tree48e4b97d4e158c2a7f487423c480569db2b96b82 /economy.c
parent59da8350c137a14dfbd194128a37591634247e46 (diff)
downloadopenttd-14e80ca15968476fffdbc64c5dc5edae9145c0d8.tar.xz
(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/economy.c b/economy.c
index 8bbc13c49..1c4cd70e7 100644
--- a/economy.c
+++ b/economy.c
@@ -42,16 +42,6 @@ const ScoreInfo _score_info[] = {
int _score_part[MAX_PLAYERS][NUM_SCORE];
-void CheckSwitchToEuro(void)
-{
- if (_currency_specs[_opt.currency].to_euro != CF_NOEURO &&
- _currency_specs[_opt.currency].to_euro != CF_ISEURO &&
- _cur_year >= (_currency_specs[_opt.currency].to_euro-MAX_YEAR_BEGIN_REAL)) {
- _opt.currency = 2; // this is the index of euro above.
- AddNewsItem(STR_EURO_INTRODUCE, NEWS_FLAGS(NM_NORMAL,0,NT_ECONOMY,0), 0, 0);
- }
-}
-
void UpdatePlayerHouse(Player *p, uint score)
{
byte val;