summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-23 14:06:57 +0000
committerrubidium <rubidium@openttd.org>2009-04-23 14:06:57 +0000
commit1f25d9126ff91e9221c981bb41aad328671a4254 (patch)
tree87d3435114bc5f75083d858d90a7135d38d8994f
parent85ca163be20f0e3eb41cdcd41234723c77ade723 (diff)
downloadopenttd-1f25d9126ff91e9221c981bb41aad328671a4254.tar.xz
(svn r16123) -Fix: forgot to add table/strgen.h to the project files + a typo
-rw-r--r--projects/openttd_vs80.vcproj4
-rw-r--r--projects/openttd_vs90.vcproj4
-rw-r--r--source.list1
-rw-r--r--src/strgen/strgen.cpp6
-rw-r--r--src/table/strgen_tables.h (renamed from src/table/strgen.h)2
5 files changed, 13 insertions, 4 deletions
diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj
index 89708db60..cf1b05dd8 100644
--- a/projects/openttd_vs80.vcproj
+++ b/projects/openttd_vs80.vcproj
@@ -2244,6 +2244,10 @@
>
</File>
<File
+ RelativePath=".\..\src\table\strgen_tables.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\..\objs\langs\table\strings.h"
>
</File>
diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj
index bd17b422d..41efc03dc 100644
--- a/projects/openttd_vs90.vcproj
+++ b/projects/openttd_vs90.vcproj
@@ -2241,6 +2241,10 @@
>
</File>
<File
+ RelativePath=".\..\src\table\strgen_tables.h"
+ >
+ </File>
+ <File
RelativePath=".\..\src\..\objs\langs\table\strings.h"
>
</File>
diff --git a/source.list b/source.list
index 452a2c3e8..cbd654e3f 100644
--- a/source.list
+++ b/source.list
@@ -511,6 +511,7 @@ table/roadveh_movement.h
table/settings.h
table/sprites.h
table/station_land.h
+table/strgen_tables.h
../objs/langs/table/strings.h
table/town_land.h
table/track_land.h
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 4da6a078f..316b98ce0 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -32,7 +32,7 @@
#define stderr stdout
#endif /* __MORPHOS__ */
-#include "../table/strgen.h"
+#include "../table/strgen_tables.h"
/* Compiles a list of strings into a compiled string list */
@@ -1217,9 +1217,9 @@ int CDECL main(int argc, char *argv[])
} else if (cs->proc == EmitSetXY) {
flags = '2'; // Command needs two parameters
} else if (cs->proc == EmitGender) {
- flags = 'g'; // Command needs number of parameters defined by plural value
+ flags = 'g'; // Command needs number of parameters defined by number of genders
} else if (cs->proc == EmitPlural) {
- flags = 'p'; // Command needs number of parameters defined by number of cases
+ flags = 'p'; // Command needs number of parameters defined by plural value
} else {
flags = '0'; // Command needs no parameters
}
diff --git a/src/table/strgen.h b/src/table/strgen_tables.h
index da48e5341..99b412f98 100644
--- a/src/table/strgen.h
+++ b/src/table/strgen_tables.h
@@ -1,6 +1,6 @@
/* $Id$ */
-/** @file table/strgen.h Tables of commands for strgen */
+/** @file table/strgen_tables.h Tables of commands for strgen */
#include "../core/enum_type.hpp"