strings.c
changeset 659 a9733f856cd0
parent 656 e3e435079efa
child 663 80c66fd07863
equal deleted inserted replaced
658:2a64a8fe809a 659:a9733f856cd0
    17 
    17 
    18 static byte **_langpack_offs;
    18 static byte **_langpack_offs;
    19 static byte *_langpack;
    19 static byte *_langpack;
    20 static uint _langtab_num[32]; // Offset into langpack offs
    20 static uint _langtab_num[32]; // Offset into langpack offs
    21 static uint _langtab_start[32]; // Offset into langpack offs
    21 static uint _langtab_start[32]; // Offset into langpack offs
       
    22 
       
    23 #if defined(WITH_REV)
       
    24 	extern const char _openttd_revision[];
       
    25 #elif defined(WITH_REV_HACK)
       
    26 	const char _openttd_revision[] = WITH_REV_HACK;
       
    27 #else
       
    28 	const char _openttd_revision[] = NOREV_STRING;
       
    29 #endif
    22 
    30 
    23 typedef byte *PlayerNameGeneratorProc(byte *buffr);
    31 typedef byte *PlayerNameGeneratorProc(byte *buffr);
    24 
    32 
    25 typedef struct {
    33 typedef struct {
    26 	uint32 ident;
    34 	uint32 ident;
   431 				break;
   439 				break;
   432 			case 1: /* {INT32} */
   440 			case 1: /* {INT32} */
   433 				buff = FormatNoCommaNumber(buff, GetParamInt32());
   441 				buff = FormatNoCommaNumber(buff, GetParamInt32());
   434 				break;
   442 				break;
   435 			case 2: /* {REV} */
   443 			case 2: /* {REV} */
   436 #ifdef WITH_REV
       
   437 				buff = str_cat(buff, (const byte*)_openttd_revision);
   444 				buff = str_cat(buff, (const byte*)_openttd_revision);
   438 #endif
       
   439 				break;
   445 				break;
   440 			case 3: { /* {SHORTCARGO} */
   446 			case 3: { /* {SHORTCARGO} */
   441 				// Short description of cargotypes. Layout:
   447 				// Short description of cargotypes. Layout:
   442 				// 8-bit = cargo type
   448 				// 8-bit = cargo type
   443 				// 16-bit = cargo count
   449 				// 16-bit = cargo count