Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5098 → Rev 5230

/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
/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
/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"
/programs/games/flood-it/trunk/lib/kolibri.h
68,10 → 68,22
}
 
 
inline fastcall word GetKey(){ //Gluk fix
EAX = 2; // just read it key from buffer
inline fastcall word GetKey() //+Gluk fix
{
$push edx
GETKEY:
$mov eax,2
$int 0x40
EAX = EAX >> 8;
$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(){