Changeset - r6:e0814299d183
[Not reviewed]
master
0 2 0
darkvater - 20 years ago 2004-08-10 15:00:15
darkvater@openttd.org
(svn r7) -Feature [1003350] Euro introduction news item. (dominik81)
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
lang/english.txt
Show inline comments
 
@@ -898,12 +898,13 @@ STR_NOTHING								:
 
STR_CANT_SHARE_ORDER_LIST				:{WHITE}Can't share order list...
 
STR_CANT_COPY_ORDER_LIST				:{WHITE}Can't copy order list...
 
STR_END_OF_SHARED_ORDERS				:{SETX 10}- - End of Shared Orders - -
 

	
 
STR_TRAIN_IS_LOST						:{WHITE}Train {COMMA16} is lost.
 
STR_TRAIN_IS_UNPROFITABLE				:{WHITE}Train {COMMA16}'s profit last year was {CURRENCY}
 
STR_EURO_INTRODUCE					:{BLACK}{BIGFONT}European Monetary Union!{}{}The Euro is introduced as the sole currency for everyday transactions in your country!
 

	
 
STR_CONFIG_PATCHES						:{BLACK}Configure Patches
 
STR_CONFIG_PATCHES_TIP					:{BLACK}Configure the patches
 
STR_CONFIG_PATCHES_CAPTION				:{WHITE}Configure Patches
 

	
 
STR_CONFIG_PATCHES_OFF					:Off
strings.c
Show inline comments
 
#include "stdafx.h"
 
#include "ttd.h"
 
#include "station.h"
 
#include "town.h"
 
#include "vehicle.h"
 
#include "news.h"
 

	
 
#define USE_TABLE(x)  { assert(index < lengthof(x)); str = x[index]; break; }
 

	
 
static byte *StationGetSpecialString(byte *buff);
 
static byte *GetSpecialTownNameString(byte *buff, int ind);
 
static byte *GetSpecialPlayerNameString(byte *buff, int ind);
 
@@ -122,12 +123,13 @@ uint GetMaskOfAllowedCurrencies()
 
}
 

	
 
void CheckSwitchToEuro()
 
{
 
	if (_cur_year >= (2002-1920) && _currency_specs[_opt.currency].flags & CF_TOEURO_2002) {
 
		_opt.currency = 21; // this is the index of euro above.
 
		AddNewsItem(STR_EURO_INTRODUCE, NEWS_FLAGS(NM_NORMAL,0,NT_ECONOMY,0), 0, 0);
 
	}
 
}
 

	
 
static byte *str_cat(byte *dst, const byte *src)
 
{
 
	while ( (*dst++ = *src++) != 0) {}
0 comments (0 inline, 0 general)