From 1f25d9126ff91e9221c981bb41aad328671a4254 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 23 Apr 2009 14:06:57 +0000 Subject: [PATCH] (svn r16123) -Fix: forgot to add table/strgen.h to the project files + a typo --- projects/openttd_vs80.vcproj | 4 ++++ projects/openttd_vs90.vcproj | 4 ++++ source.list | 1 + src/strgen/strgen.cpp | 6 +++--- src/table/{strgen.h => strgen_tables.h} | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) rename src/table/{strgen.h => strgen_tables.h} (99%) diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj index 89708db602..cf1b05dd8e 100644 --- a/projects/openttd_vs80.vcproj +++ b/projects/openttd_vs80.vcproj @@ -2243,6 +2243,10 @@ RelativePath=".\..\src\table\station_land.h" > + + diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj index bd17b422de..41efc03dc5 100644 --- a/projects/openttd_vs90.vcproj +++ b/projects/openttd_vs90.vcproj @@ -2240,6 +2240,10 @@ RelativePath=".\..\src\table\station_land.h" > + + diff --git a/source.list b/source.list index 452a2c3e8c..cbd654e3f1 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 4da6a078ff..316b98ce07 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 similarity index 99% rename from src/table/strgen.h rename to src/table/strgen_tables.h index da48e53413..99b412f98b 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"