From 620be5b36efdc719b04b7896e4be6e61341a8f0a Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 3 Jul 2012 16:36:37 +0000 Subject: [PATCH] clicks: set default size to Middle git-svn-id: svn://kolibrios.org@2842 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/clicks/trunk/clicks.c | 4 ++-- programs/games/clicks/trunk/lib/kolibri.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/games/clicks/trunk/clicks.c b/programs/games/clicks/trunk/clicks.c index 94f55d5548..0160d36c47 100644 --- a/programs/games/clicks/trunk/clicks.c +++ b/programs/games/clicks/trunk/clicks.c @@ -6,7 +6,7 @@ system_colors sc; //уровни сложности -int DIFFICULTY_LEVEL; +int DIFFICULTY_LEVEL=1; //по-умолчанию среднее поле char *BOARD_SIZES[]={ "S", "M", "L", 0 }; int DIFFICULTY_LEV_PARAMS[]={ 9, 12, 16 }; @@ -37,7 +37,7 @@ void main() { int key, id; - BLOCKS_NUM=DIFFICULTY_LEV_PARAMS[0]; //по-умолчанию самое маленькое поле + BLOCKS_NUM=DIFFICULTY_LEV_PARAMS[DIFFICULTY_LEVEL]; new_game(); diff --git a/programs/games/clicks/trunk/lib/kolibri.h b/programs/games/clicks/trunk/lib/kolibri.h index daa2c8ae7a..220cba1825 100644 --- a/programs/games/clicks/trunk/lib/kolibri.h +++ b/programs/games/clicks/trunk/lib/kolibri.h @@ -94,7 +94,7 @@ inline fastcall Pause(dword EBX) //------------------------------------------------------------------------------ -char buffer[11]=""; +char buffer[11]; inline fastcall dword IntToStr(dword ESI) { $mov edi, #buffer @@ -223,7 +223,7 @@ void PutImage(dword EBX,w,h,x,y) $int 0x40 } -inline fastcall dword WriteDebug(dword EDX) +inline fastcall dword debug(dword EDX) { $push ebx $push ecx