diff --git a/programs/games/flood-it/trunk/compile_eng.bat b/programs/games/flood-it/trunk/compile_eng.bat index 941a7c90ae..805fac4f5e 100644 --- a/programs/games/flood-it/trunk/compile_eng.bat +++ b/programs/games/flood-it/trunk/compile_eng.bat @@ -1,7 +1,7 @@ del lang.h-- echo #define LANG_ENG 1 >lang.h-- -..\C--\C-- flood-it.c +C-- flood-it.c del flood-it! rename flood-it.com flood-it -..\C--\kpack flood-it +C--\kpack flood-it pause \ No newline at end of file diff --git a/programs/games/flood-it/trunk/compile_rus.bat b/programs/games/flood-it/trunk/compile_rus.bat index 04ffcdc4aa..0d3ea03512 100644 --- a/programs/games/flood-it/trunk/compile_rus.bat +++ b/programs/games/flood-it/trunk/compile_rus.bat @@ -1,7 +1,7 @@ del lang.h-- echo #define LANG_RUS 1 >lang.h-- -..\C--\C-- flood-it.c +C-- flood-it.c del flood-it rename flood-it.com flood-it -..\C--\kpack flood-it +kpack flood-it pause \ No newline at end of file diff --git a/programs/games/flood-it/trunk/flood-it.c b/programs/games/flood-it/trunk/flood-it.c index 639c944b30..f06d3ddd46 100644 --- a/programs/games/flood-it/trunk/flood-it.c +++ b/programs/games/flood-it/trunk/flood-it.c @@ -1,4 +1,4 @@ -//Leency 06.10.2011, Flood-it! v2.4, GPL +//Leency 06.10.2011, Flood-it! v2.41, GPL #include "lib\kolibri.h" #include "lib\random.h" diff --git a/programs/games/flood-it/trunk/lib/kolibri.h b/programs/games/flood-it/trunk/lib/kolibri.h index 9e68ea2075..9e1150792f 100644 --- a/programs/games/flood-it/trunk/lib/kolibri.h +++ b/programs/games/flood-it/trunk/lib/kolibri.h @@ -68,10 +68,22 @@ inline fastcall dword WaitEvent(){ } -inline fastcall word GetKey(){ //Gluk fix - EAX = 2; // just read it key from buffer - $int 0x40 - EAX = EAX >> 8; +inline fastcall word GetKey() //+Gluk fix +{ + $push edx +GETKEY: + $mov eax,2 + $int 0x40 + $cmp eax,1 + $jne GETKEYI + $mov ah,dh + $jmp GETKEYII //jz? +GETKEYI: + $mov dh,ah + $jmp GETKEY +GETKEYII: + $pop edx + $shr eax,8 } inline fastcall word GetButtonID(){