equal
deleted
inserted
replaced
16 #include "waypoint.h" |
16 #include "waypoint.h" |
17 #include "industry.h" |
17 #include "industry.h" |
18 #include "variables.h" |
18 #include "variables.h" |
19 #include "newgrf_text.h" |
19 #include "newgrf_text.h" |
20 #include "table/landscape_const.h" |
20 #include "table/landscape_const.h" |
|
21 #include "music.h" |
21 |
22 |
22 char _userstring[128]; |
23 char _userstring[128]; |
23 |
24 |
24 static char *StationGetSpecialString(char *buff, int x); |
25 static char *StationGetSpecialString(char *buff, int x); |
25 static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed); |
26 static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed); |
1013 buff = strecpy(buff, base[num * GB(x, 16, 8) >> 8], NULL); |
1014 buff = strecpy(buff, base[num * GB(x, 16, 8) >> 8], NULL); |
1014 |
1015 |
1015 return buff; |
1016 return buff; |
1016 } |
1017 } |
1017 |
1018 |
1018 static const char * const _song_names[] = { |
|
1019 "Tycoon DELUXE Theme", |
|
1020 "Easy Driver", |
|
1021 "Little Red Diesel", |
|
1022 "Cruise Control", |
|
1023 "Don't Walk!", |
|
1024 "Fell Apart On Me", |
|
1025 "City Groove", |
|
1026 "Funk Central", |
|
1027 "Stoke It", |
|
1028 "Road Hog", |
|
1029 "Aliens Ate My Railway", |
|
1030 "Snarl Up", |
|
1031 "Stroll On", |
|
1032 "Can't Get There From Here", |
|
1033 "Sawyer's Tune", |
|
1034 "Hold That Train!", |
|
1035 "Movin' On", |
|
1036 "Goss Groove", |
|
1037 "Small Town", |
|
1038 "Broomer's Oil Rag", |
|
1039 "Jammit", |
|
1040 "Hard Drivin'" |
|
1041 }; |
|
1042 |
|
1043 static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) |
1019 static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) |
1044 { |
1020 { |
1045 switch (ind) { |
1021 switch (ind) { |
1046 case 1: // not used |
1022 case 1: // not used |
1047 return strecpy(buff, _silly_company_names[GetInt32(&argv) & 0xFFFF], NULL); |
1023 return strecpy(buff, _silly_company_names[GetInt32(&argv) & 0xFFFF], NULL); |
1051 |
1027 |
1052 case 3: // President name |
1028 case 3: // President name |
1053 return GenPresidentName(buff, GetInt32(&argv)); |
1029 return GenPresidentName(buff, GetInt32(&argv)); |
1054 |
1030 |
1055 case 4: // song names |
1031 case 4: // song names |
1056 return strecpy(buff, _song_names[GetInt32(&argv) - 1], NULL); |
1032 return strecpy(buff, origin_songs_specs[GetInt32(&argv) - 1].song_name, NULL); |
1057 } |
1033 } |
1058 |
1034 |
1059 // town name? |
1035 // town name? |
1060 if (IS_INT_INSIDE(ind - 6, 0, SPECSTR_TOWNNAME_LAST-SPECSTR_TOWNNAME_START + 1)) { |
1036 if (IS_INT_INSIDE(ind - 6, 0, SPECSTR_TOWNNAME_LAST-SPECSTR_TOWNNAME_START + 1)) { |
1061 buff = GetSpecialTownNameString(buff, ind - 6, GetInt32(&argv)); |
1037 buff = GetSpecialTownNameString(buff, ind - 6, GetInt32(&argv)); |