From 71685aed9e5e405c9fd069c827264991e8ca21cd Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Mon, 10 Sep 2018 14:10:48 +0000 Subject: [PATCH] Fixed lang git-svn-id: svn://kolibrios.org@7340 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/kosilka/Tupfile.lua | 4 ++-- programs/games/kosilka/kosilka.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/programs/games/kosilka/Tupfile.lua b/programs/games/kosilka/Tupfile.lua index 1537e945f6..d0737fc2c7 100644 --- a/programs/games/kosilka/Tupfile.lua +++ b/programs/games/kosilka/Tupfile.lua @@ -2,8 +2,8 @@ if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") tup.include(HELPERDIR .. "/use_msvc.lua") if tup.getconfig("LANG") == "ru" -then CFLAGS = CFLAGS .. " /DLANG=RUS" -else CFLAGS = CFLAGS .. " /DLANG=ENG" +then CFLAGS = CFLAGS .. "-DLANG_RUS" +else CFLAGS = CFLAGS .. "-DLANG_ENG" end compile_msvc{"kosilka.cpp", "KosFile.cpp", "kosSyst.cpp", "mcsmemm.cpp"} link_msvc("kosilka") diff --git a/programs/games/kosilka/kosilka.cpp b/programs/games/kosilka/kosilka.cpp index c7b987fe55..be2594c50f 100644 --- a/programs/games/kosilka/kosilka.cpp +++ b/programs/games/kosilka/kosilka.cpp @@ -28,9 +28,7 @@ int read_result=0; bool skin_available=false; bool w_redraw=true; -#define LANG ENG - -#if LANG == RUS +#ifdef LANG_RUS const char windowTitle[] = "Косилка для Колибри"; const char version[] = "Версия 1.16"; const char win[] = "Вы выиграли!";