strings.c
changeset 6 e9b56d50aa99
parent 0 29654efe3188
child 26 4c08274a29dc
equal deleted inserted replaced
5:539c9743d999 6:e9b56d50aa99
     1 #include "stdafx.h"
     1 #include "stdafx.h"
     2 #include "ttd.h"
     2 #include "ttd.h"
     3 #include "station.h"
     3 #include "station.h"
     4 #include "town.h"
     4 #include "town.h"
     5 #include "vehicle.h"
     5 #include "vehicle.h"
       
     6 #include "news.h"
     6 
     7 
     7 #define USE_TABLE(x)  { assert(index < lengthof(x)); str = x[index]; break; }
     8 #define USE_TABLE(x)  { assert(index < lengthof(x)); str = x[index]; break; }
     8 
     9 
     9 static byte *StationGetSpecialString(byte *buff);
    10 static byte *StationGetSpecialString(byte *buff);
    10 static byte *GetSpecialTownNameString(byte *buff, int ind);
    11 static byte *GetSpecialTownNameString(byte *buff, int ind);
   123 
   124 
   124 void CheckSwitchToEuro()
   125 void CheckSwitchToEuro()
   125 {
   126 {
   126 	if (_cur_year >= (2002-1920) && _currency_specs[_opt.currency].flags & CF_TOEURO_2002) {
   127 	if (_cur_year >= (2002-1920) && _currency_specs[_opt.currency].flags & CF_TOEURO_2002) {
   127 		_opt.currency = 21; // this is the index of euro above.
   128 		_opt.currency = 21; // this is the index of euro above.
       
   129 		AddNewsItem(STR_EURO_INTRODUCE, NEWS_FLAGS(NM_NORMAL,0,NT_ECONOMY,0), 0, 0);
   128 	}
   130 	}
   129 }
   131 }
   130 
   132 
   131 static byte *str_cat(byte *dst, const byte *src)
   133 static byte *str_cat(byte *dst, const byte *src)
   132 {
   134 {