equal
deleted
inserted
replaced
14 #include "news.h" |
14 #include "news.h" |
15 #include "screenshot.h" |
15 #include "screenshot.h" |
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 "music.h" |
19 |
20 |
20 char _userstring[128]; |
21 char _userstring[128]; |
21 |
22 |
22 static char *StationGetSpecialString(char *buff, int x); |
23 static char *StationGetSpecialString(char *buff, int x); |
23 static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed); |
24 static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed); |
897 buff = strecpy(buff, base[num * GB(x, 16, 8) >> 8], NULL); |
898 buff = strecpy(buff, base[num * GB(x, 16, 8) >> 8], NULL); |
898 |
899 |
899 return buff; |
900 return buff; |
900 } |
901 } |
901 |
902 |
902 static const char * const _song_names[] = { |
|
903 "Tycoon DELUXE Theme", |
|
904 "Easy Driver", |
|
905 "Little Red Diesel", |
|
906 "Cruise Control", |
|
907 "Don't Walk!", |
|
908 "Fell Apart On Me", |
|
909 "City Groove", |
|
910 "Funk Central", |
|
911 "Stoke It", |
|
912 "Road Hog", |
|
913 "Aliens Ate My Railway", |
|
914 "Snarl Up", |
|
915 "Stroll On", |
|
916 "Can't Get There From Here", |
|
917 "Sawyer's Tune", |
|
918 "Hold That Train!", |
|
919 "Movin' On", |
|
920 "Goss Groove", |
|
921 "Small Town", |
|
922 "Broomer's Oil Rag", |
|
923 "Jammit", |
|
924 "Hard Drivin'" |
|
925 }; |
|
926 |
|
927 static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) |
903 static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) |
928 { |
904 { |
929 switch (ind) { |
905 switch (ind) { |
930 case 1: // not used |
906 case 1: // not used |
931 return strecpy(buff, _silly_company_names[GetInt32(&argv) & 0xFFFF], NULL); |
907 return strecpy(buff, _silly_company_names[GetInt32(&argv) & 0xFFFF], NULL); |
935 |
911 |
936 case 3: // President name |
912 case 3: // President name |
937 return GenPresidentName(buff, GetInt32(&argv)); |
913 return GenPresidentName(buff, GetInt32(&argv)); |
938 |
914 |
939 case 4: // song names |
915 case 4: // song names |
940 return strecpy(buff, _song_names[GetInt32(&argv) - 1], NULL); |
916 return strecpy(buff, origin_songs_specs[GetInt32(&argv) - 1].song_name, NULL); |
941 } |
917 } |
942 |
918 |
943 // town name? |
919 // town name? |
944 if (IS_INT_INSIDE(ind - 6, 0, SPECSTR_TOWNNAME_LAST-SPECSTR_TOWNNAME_START + 1)) { |
920 if (IS_INT_INSIDE(ind - 6, 0, SPECSTR_TOWNNAME_LAST-SPECSTR_TOWNNAME_START + 1)) { |
945 buff = GetSpecialTownNameString(buff, ind - 6, GetInt32(&argv)); |
921 buff = GetSpecialTownNameString(buff, ind - 6, GetInt32(&argv)); |