diff --git a/src/common/attributes/attributes.vcproj b/src/common/attributes/attributes.vcproj index 16c9efac2..b9022a0f6 100644 --- a/src/common/attributes/attributes.vcproj +++ b/src/common/attributes/attributes.vcproj @@ -24,7 +24,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32,_DEBUG" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/gamecode/gamecode.vcproj b/src/common/gamecode/gamecode.vcproj index 6237df6b8..c9a627dc1 100644 --- a/src/common/gamecode/gamecode.vcproj +++ b/src/common/gamecode/gamecode.vcproj @@ -116,7 +116,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 30d102a80..ff43ef1ac 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -1410,7 +1410,7 @@ describe(FILE * F, const region * r, int partial, faction * f) } } -void +static void statistics(FILE * F, const region * r, const faction * f) { const unit *u; diff --git a/src/common/items/items.vcproj b/src/common/items/items.vcproj index e61001082..92619a8cb 100644 --- a/src/common/items/items.vcproj +++ b/src/common/items/items.vcproj @@ -69,7 +69,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/kernel/kernel.vcproj b/src/common/kernel/kernel.vcproj index 2d5402e19..ffc09e9dc 100644 --- a/src/common/kernel/kernel.vcproj +++ b/src/common/kernel/kernel.vcproj @@ -70,7 +70,7 @@ AdditionalIncludeDirectories="../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/modules/modules.vcproj b/src/common/modules/modules.vcproj index 46d2e618d..927c7346a 100644 --- a/src/common/modules/modules.vcproj +++ b/src/common/modules/modules.vcproj @@ -24,7 +24,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/races/races.vcproj b/src/common/races/races.vcproj index dbc7b17aa..35897af40 100644 --- a/src/common/races/races.vcproj +++ b/src/common/races/races.vcproj @@ -24,7 +24,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/spells/spells.vcproj b/src/common/spells/spells.vcproj index bf3829682..8327b0720 100644 --- a/src/common/spells/spells.vcproj +++ b/src/common/spells/spells.vcproj @@ -69,7 +69,7 @@ AdditionalIncludeDirectories="../kernel,../util,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32,_DEBUG" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/triggers/triggers.vcproj b/src/common/triggers/triggers.vcproj index e49ac889f..24c0cd07e 100644 --- a/src/common/triggers/triggers.vcproj +++ b/src/common/triggers/triggers.vcproj @@ -24,7 +24,7 @@ AdditionalIncludeDirectories="../util,../kernel,../..,.." PreprocessorDefinitions="_WINDOWS,WIN32,_DEBUG" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/common/util/language.c b/src/common/util/language.c index b6c495056..0761844eb 100644 --- a/src/common/util/language.c +++ b/src/common/util/language.c @@ -13,6 +13,7 @@ */ #include #include "language.h" +#include "language_struct.h" #include "log.h" #include "goodies.h" @@ -22,22 +23,8 @@ #include #include -#define SMAXHASH 512 - /** importing **/ -typedef struct locale { - struct locale * next; - unsigned int hashkey; - const char * name; - struct locale_string { - unsigned int hashkey; - struct locale_string * nexthash; - char * str; - char * key; - } * strings[SMAXHASH]; -} locale; - locale * default_locale; locale * locales; diff --git a/src/common/util/language_struct.h b/src/common/util/language_struct.h new file mode 100644 index 000000000..d69ef048a --- /dev/null +++ b/src/common/util/language_struct.h @@ -0,0 +1,25 @@ +#ifndef CLASS_LANGUAGE_STRUCT +#define CLASS_LANGUAGE_STRUCT + +/* This file should not be included by anything in the server. If you + * feel that you need to include it, it's a sure sign that you're trying to + * do something BAD. */ + +#define SMAXHASH 512 + +typedef struct locale { + struct locale * next; + unsigned int hashkey; + const char * name; + struct locale_string { + unsigned int hashkey; + struct locale_string * nexthash; + char * str; + char * key; + } * strings[SMAXHASH]; +} locale; + +extern locale * default_locale; +extern locale * locales; + +#endif diff --git a/src/common/util/util.vcproj b/src/common/util/util.vcproj index 8e3f3acff..4b5419021 100644 --- a/src/common/util/util.vcproj +++ b/src/common/util/util.vcproj @@ -116,7 +116,7 @@ AdditionalIncludeDirectories="../..,.." PreprocessorDefinitions="_WINDOWS,WIN32,_DEBUG" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" @@ -183,6 +183,9 @@ + + diff --git a/src/eressea.sln b/src/eressea.sln index 864fb6772..cd7f9ed3e 100644 --- a/src/eressea.sln +++ b/src/eressea.sln @@ -21,29 +21,40 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "triggers", "common\triggers EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "util", "common\util\util.vcproj", "{1D80D05F-BCF5-4971-8F06-D9581FD3B1F4}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xmlsplitter", "tools\xmlsplitter.vcproj", "{8031178A-081B-4BFA-AA98-46A2B03A3202}" +EndProject Global GlobalSection(SolutionConfiguration) = preSolution ConfigName.0 = Debug ConfigName.1 = Release EndGlobalSection GlobalSection(ProjectDependencies) = postSolution - {B859D542-781E-4647-BCAB-3FE5ED077366}.0 = {EF495253-2EEC-4F83-B6C0-D651F88B2198} - {B859D542-781E-4647-BCAB-3FE5ED077366}.1 = {0EE778AB-8445-40DB-8F65-6BE378A91B97} - {B859D542-781E-4647-BCAB-3FE5ED077366}.2 = {4C837BEC-A428-4287-84B3-8F8F9DE7FA00} - {B859D542-781E-4647-BCAB-3FE5ED077366}.3 = {601CF164-F483-4DE7-8014-64BDD30680B5} + {B859D542-781E-4647-BCAB-3FE5ED077366}.0 = {EDB0DE67-8215-4AF7-ACA1-F23CB11FF211} + {B859D542-781E-4647-BCAB-3FE5ED077366}.1 = {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4} + {B859D542-781E-4647-BCAB-3FE5ED077366}.2 = {79659D44-EC28-42B9-9475-6C0D62D0AAE0} + {B859D542-781E-4647-BCAB-3FE5ED077366}.3 = {330712B5-8B27-4B17-B3CF-7A02CC0F93C3} {B859D542-781E-4647-BCAB-3FE5ED077366}.4 = {C14E3D2B-8189-4570-A4E3-9010C873E4FD} - {B859D542-781E-4647-BCAB-3FE5ED077366}.5 = {330712B5-8B27-4B17-B3CF-7A02CC0F93C3} - {B859D542-781E-4647-BCAB-3FE5ED077366}.6 = {79659D44-EC28-42B9-9475-6C0D62D0AAE0} - {B859D542-781E-4647-BCAB-3FE5ED077366}.7 = {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4} - {B859D542-781E-4647-BCAB-3FE5ED077366}.8 = {EDB0DE67-8215-4AF7-ACA1-F23CB11FF211} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.0 = {0EE778AB-8445-40DB-8F65-6BE378A91B97} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.1 = {4C837BEC-A428-4287-84B3-8F8F9DE7FA00} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.2 = {601CF164-F483-4DE7-8014-64BDD30680B5} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.3 = {C14E3D2B-8189-4570-A4E3-9010C873E4FD} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.4 = {330712B5-8B27-4B17-B3CF-7A02CC0F93C3} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.5 = {EDB0DE67-8215-4AF7-ACA1-F23CB11FF211} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.6 = {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4} - {17F83AAB-352D-4F68-ADA6-09F36D86826F}.7 = {EF495253-2EEC-4F83-B6C0-D651F88B2198} + {B859D542-781E-4647-BCAB-3FE5ED077366}.5 = {601CF164-F483-4DE7-8014-64BDD30680B5} + {B859D542-781E-4647-BCAB-3FE5ED077366}.6 = {4C837BEC-A428-4287-84B3-8F8F9DE7FA00} + {B859D542-781E-4647-BCAB-3FE5ED077366}.7 = {0EE778AB-8445-40DB-8F65-6BE378A91B97} + {B859D542-781E-4647-BCAB-3FE5ED077366}.8 = {EF495253-2EEC-4F83-B6C0-D651F88B2198} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.0 = {EF495253-2EEC-4F83-B6C0-D651F88B2198} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.1 = {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.2 = {EDB0DE67-8215-4AF7-ACA1-F23CB11FF211} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.3 = {330712B5-8B27-4B17-B3CF-7A02CC0F93C3} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.4 = {C14E3D2B-8189-4570-A4E3-9010C873E4FD} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.5 = {601CF164-F483-4DE7-8014-64BDD30680B5} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.6 = {4C837BEC-A428-4287-84B3-8F8F9DE7FA00} + {17F83AAB-352D-4F68-ADA6-09F36D86826F}.7 = {0EE778AB-8445-40DB-8F65-6BE378A91B97} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.0 = {EDB0DE67-8215-4AF7-ACA1-F23CB11FF211} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.1 = {4C837BEC-A428-4287-84B3-8F8F9DE7FA00} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.2 = {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.3 = {79659D44-EC28-42B9-9475-6C0D62D0AAE0} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.4 = {C14E3D2B-8189-4570-A4E3-9010C873E4FD} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.5 = {0EE778AB-8445-40DB-8F65-6BE378A91B97} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.6 = {EF495253-2EEC-4F83-B6C0-D651F88B2198} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.7 = {330712B5-8B27-4B17-B3CF-7A02CC0F93C3} + {8031178A-081B-4BFA-AA98-46A2B03A3202}.8 = {601CF164-F483-4DE7-8014-64BDD30680B5} EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {330712B5-8B27-4B17-B3CF-7A02CC0F93C3}.Debug.ActiveCfg = Debug|Win32 @@ -88,6 +99,10 @@ Global {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4}.Debug.Build.0 = Debug|Win32 {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4}.Release.ActiveCfg = Release|Win32 {1D80D05F-BCF5-4971-8F06-D9581FD3B1F4}.Release.Build.0 = Release|Win32 + {8031178A-081B-4BFA-AA98-46A2B03A3202}.Debug.ActiveCfg = Debug|Win32 + {8031178A-081B-4BFA-AA98-46A2B03A3202}.Debug.Build.0 = Debug|Win32 + {8031178A-081B-4BFA-AA98-46A2B03A3202}.Release.ActiveCfg = Release|Win32 + {8031178A-081B-4BFA-AA98-46A2B03A3202}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection diff --git a/src/eressea/eressea.vcproj b/src/eressea/eressea.vcproj index a4e86c872..45a432cce 100644 --- a/src/eressea/eressea.vcproj +++ b/src/eressea/eressea.vcproj @@ -136,7 +136,7 @@ AdditionalIncludeDirectories="../common/kernel,../common/gamecode,../common/util,../common,.." PreprocessorDefinitions="_CONSOLE,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" @@ -204,6 +204,9 @@ + + diff --git a/src/mapper/map_modify.c b/src/mapper/map_modify.c index 5bd2a8f4f..7f4d36a3c 100644 --- a/src/mapper/map_modify.c +++ b/src/mapper/map_modify.c @@ -85,12 +85,6 @@ terrain_create(int climate) return terrain; } -static int -blockcoord(int x) -{ - return ((x<0)?((x-BLOCKSIZE+1) / BLOCKSIZE):(x / BLOCKSIZE)) * BLOCKSIZE; -} - static char newblock[BLOCKSIZE][BLOCKSIZE]; static int g_maxluxuries; diff --git a/src/mapper/mapper.vcproj b/src/mapper/mapper.vcproj index 79a75f3e0..0f8f812c7 100644 --- a/src/mapper/mapper.vcproj +++ b/src/mapper/mapper.vcproj @@ -80,7 +80,7 @@ AdditionalIncludeDirectories="$(CURSES_ROOT)/include;../common/kernel,../common/gamecode,../common/util,../common,.." PreprocessorDefinitions="_CONSOLE,WIN32" BasicRuntimeChecks="0" - RuntimeLibrary="4" + RuntimeLibrary="5" DisableLanguageExtensions="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderThrough="stdafx.h" diff --git a/src/res/de/strings.xml b/src/res/de/strings.xml index b484da4da..565065a69 100644 --- a/src/res/de/strings.xml +++ b/src/res/de/strings.xml @@ -2011,289 +2011,6 @@ WERWESEN - - Adler - - - Drache - - - Drachen - - - Dämon - - - Dämonen - - - Einhorn - - - Einhörner - - - Elf - - - Elfen - - - Eule - - - Eulen - - - Geist - - - Geister - - - Goblin - - - Goblins - - - Halbling - - - Halblinge - - - Hirntöter - - - Insekt - - - Insekten - - - Jungdrache - - - Jungdrachen - - - Katze - - - Katzen - - - Luchs - - - Luchse - - - Meermensch - - - Meermenschen - - - Mensch - - - Menschen - - - Ork - - - Orks - - - Ork - - - Orks - - - Snotling - - - Snotlinge - - - - Riesenschildkröte - - - Riesenschildkröten - - - Schablone - - - Schablonen - - - Schattenritter - - - Seeschlange - - - Troll - - - Trolle - - - Untote - - - Untoter - - - Warg - - - Warge - - - Zombie - - - Zombies - - - Zwerg - - - Zwerge - - - races, future use: - - Luchse - - - Einhörner - - - Warge - - - Drachen - - - Katzendrachen - - - Geister - - - Katzen - - - Menschen - - - Katze - - - Elf - - - Mensch - - - Elfen - - - Meermensch - - - Zwerge - - - Luchs - - - Einhorn - - - Warg - - - Drache - - - Katzendrache - - - Zwerg - - - Meermenschen - - - Insekten - - - Insekt - - - Geist - - - Halbling - - - Halblinge - - - Trolle - - - Troll - - - Untote - - - Untoter - - - Eule - - - Riesenschildkröte - - - Altorks - - - Altork - - - Orks - - - Ork - - - Snotling - - - Snotlinge - - - Zombie - - - Zombies - - - Schattenritter - - NR generieren diff --git a/src/res/eressea.xml b/src/res/eressea.xml index ff028839e..9b34f0df1 100644 --- a/src/res/eressea.xml +++ b/src/res/eressea.xml @@ -6,6 +6,7 @@ English Localization + diff --git a/src/res/fr/strings.xml b/src/res/fr/strings.xml index e5e5b3a7d..ec6e9d30e 100644 --- a/src/res/fr/strings.xml +++ b/src/res/fr/strings.xml @@ -1588,259 +1588,259 @@ - + aigle - + dragon - + dragons - + démon - + démons - + licorne - + licornes - + elfe - + elfes - + hibou - + hibous - + fantôme - + fantômes - + gobelin - + gobelins - + hobbit - + hobbits - + céphalophage - + insecte - + insectes - + dragonnet - + dragonnets - + chat - + chats - + dragon-chat - + dragons-chats - + lynx - + lynx - + atlante - + atlantes - + humain - + humains - + orque - + orques - + orque - + orques - + tortue géante - + tortues géantes - + modèle - + modèles - + guerrier illusoire - + serpent de mer - + troll - + trolls - + mort-vivant - + morts-vivants - + warg - + wargs - + zombie - + zombies - + nain - + nains - + crapaud - + crapauds - + métamorphe - + gnome - + fantôme du musée - + spectre - + goule - + zombie juju - + liche - + centaure - + kraken - + dauphin - + tigre - + chat de l'Enfer - + chat des rêves - + diablotin - + nymphe - + dragon chinois - + rat - + ver des profondeurs - + loup - + paysan - + quauquemaire - + yéti - + lémure - + ombre - + golem de fer - + enchantement - + spécial - + draconien - + ent - + wyrm - + illusion