strings.c
changeset 26 4c08274a29dc
parent 6 e9b56d50aa99
child 64 93656f16d50a
equal deleted inserted replaced
25:cf54d03fa22f 26:4c08274a29dc
   318 
   318 
   319 	for(src = GetStringPtr(STR_MONTH_JAN + ymd.month); (*buff++=*src++) != 0;) {}
   319 	for(src = GetStringPtr(STR_MONTH_JAN + ymd.month); (*buff++=*src++) != 0;) {}
   320 	buff[-1] = ' ';
   320 	buff[-1] = ' ';
   321 
   321 
   322 	return FormatNoCommaNumber(buff, ymd.year + 1920);
   322 	return FormatNoCommaNumber(buff, ymd.year + 1920);
       
   323 }
       
   324 
       
   325 uint GetCurrentCurrencyRate() {
       
   326     return (&_currency_specs[_opt.currency])->rate;
   323 }
   327 }
   324 
   328 
   325 static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 number, bool compact)
   329 static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 number, bool compact)
   326 {
   330 {
   327 	const char *s;
   331 	const char *s;