From d8f1559b72a95b0669d608be56c77be9143ff59b Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Tue, 3 Apr 2007 19:17:42 +0000 Subject: [PATCH] Remove log message about empty file name in LoadLanguage() call --- golded3/gclang.cpp | 7 ++----- golded3/gerand.cpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/golded3/gclang.cpp b/golded3/gclang.cpp index 4c71fc2..1857b3e 100644 --- a/golded3/gclang.cpp +++ b/golded3/gclang.cpp @@ -669,11 +669,8 @@ void LoadLanguage(const char* file) int line = 0; char buf[256]; - if (file==NULL || *file==0){ - LOG.printf("! LoadLanguage() is called with empty file name!"); - #if defined(GFTRK_ENABLE) - __gftrk_log(); - #endif + if (file==NULL || *file==0) + { return; } gfile fp(AddPath(CFG->goldpath, file), "rt", CFG->sharemode); diff --git a/golded3/gerand.cpp b/golded3/gerand.cpp index 09a8b79..7beed2a 100644 --- a/golded3/gerand.cpp +++ b/golded3/gerand.cpp @@ -233,7 +233,7 @@ void Area::InitData() { CFG->grp.GetItm(GRP_XLATIMPORT, adat->xlatimport, sizeof(adat->xlatimport)); } - if(adat->loadlanguage) + if(adat->loadlanguage && *adat->loadlanguage) LoadLanguage(adat->loadlanguage); }