summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-07-07 02:44:51 +0000
committerbelugas <belugas@openttd.org>2006-07-07 02:44:51 +0000
commit351c878365ed1737afb3f80ad75fc9fc3a266d89 (patch)
treed03d3af94e7ce1ddb0e15dba460d980f00d5d203 /strings.c
parent7aa821b7fcbf7a34b37239baf3ad6da9ba1ad50c (diff)
downloadopenttd-351c878365ed1737afb3f80ad75fc9fc3a266d89.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.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/strings.c b/strings.c
index 84439828d..2e976f4ad 100644
--- a/strings.c
+++ b/strings.c
@@ -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?