diff options
author | belugas <belugas@openttd.org> | 2006-07-07 02:44:51 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-07-07 02:44:51 +0000 |
commit | 94692a2905efd4be61d726672f5048f9a31cfbb9 (patch) | |
tree | d03d3af94e7ce1ddb0e15dba460d980f00d5d203 /strings.c | |
parent | d2e0eb8fbf97df3fee5e5a0644e385456f1f3e15 (diff) | |
download | openttd-94692a2905efd4be61d726672f5048f9a31cfbb9.tar.xz |
(svn r5464) [Behaviour Fix] : When starting the game, the system will now verify the presence of music files in gm forlder.
A song can now be removed from the programmed list (in custom list 1 and 2) by clicking on it.
Added music.c[ch] files, to make it all a bit cleaner.
Now, the name of the gm file is associated with the title of the song.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 28 |
1 files changed, 2 insertions, 26 deletions
@@ -18,6 +18,7 @@ #include "variables.h" #include "newgrf_text.h" #include "table/landscape_const.h" +#include "music.h" char _userstring[128]; @@ -1015,31 +1016,6 @@ static char *GenPresidentName(char *buff, uint32 x) return buff; } -static const char * const _song_names[] = { - "Tycoon DELUXE Theme", - "Easy Driver", - "Little Red Diesel", - "Cruise Control", - "Don't Walk!", - "Fell Apart On Me", - "City Groove", - "Funk Central", - "Stoke It", - "Road Hog", - "Aliens Ate My Railway", - "Snarl Up", - "Stroll On", - "Can't Get There From Here", - "Sawyer's Tune", - "Hold That Train!", - "Movin' On", - "Goss Groove", - "Small Town", - "Broomer's Oil Rag", - "Jammit", - "Hard Drivin'" -}; - static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) { switch (ind) { @@ -1053,7 +1029,7 @@ static char *GetSpecialPlayerNameString(char *buff, int ind, const int32 *argv) return GenPresidentName(buff, GetInt32(&argv)); case 4: // song names - return strecpy(buff, _song_names[GetInt32(&argv) - 1], NULL); + return strecpy(buff, origin_songs_specs[GetInt32(&argv) - 1].song_name, NULL); } // town name? |