revised audit 1441

git-svn-id: svn://kolibrios.org@1442 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA 2010-03-26 18:30:24 +00:00
parent c2cbea2674
commit dec9645258

View File

@ -46,7 +46,7 @@ tile_delta_x equ byte[edi+30] ;ᤢ
tile_delta_y equ byte[edi+31] ;ᤢ¨£ â ©«  ®â­®á¨â¥«ì­® ªãàá®à  ¯® ®á¨ y tile_delta_y equ byte[edi+31] ;ᤢ¨£ â ©«  ®â­®á¨â¥«ì­® ªãàá®à  ¯® ®á¨ y
; *** ¯®à冷ª ¢ë§®¢  ä㭪権 ¯à¨ § £à㧪¨ â ©«®¢ *** ; *** ¯®à冷ª ¢ë§®¢  ä㭪権 ¯à¨ § £à㧪¥ â ©«®¢ ***
;load_tile ;load_tile
; get_tile_path ; get_tile_path
; load_new_tile (⥪ãé ï ª à⨭ª ) ; load_new_tile (⥪ãé ï ª à⨭ª )
@ -635,6 +635,8 @@ proc load_tile, tile:dword
stdcall load_new_tile,edi stdcall load_new_tile,edi
cmp tile_err_f,0 cmp tile_err_f,0
je @f ;¥á«¨ 㤠筮 ®âªà뫨 ⥪ã騩 ä ©« â® ®áâ «ì­ë¥ ¤¥©áâ¢¨ï ¯à®¯ã᪠¥¬ je @f ;¥á«¨ 㤠筮 ®âªà뫨 ⥪ã騩 ä ©« â® ®áâ «ì­ë¥ ¤¥©áâ¢¨ï ¯à®¯ã᪠¥¬
; cmp tile_err_f,6
; je @f
mov tile_drobn,0 mov tile_drobn,0
mov eax,ch2 ;¯à®¢¥à塞 ®¯æ¨î '¡à âì á­¨§ã' mov eax,ch2 ;¯à®¢¥à塞 ®¯æ¨î '¡à âì á­¨§ã'
bt dword[eax+32],1 ;ch_flags equ [edi+32] ;ä« £¨ bt dword[eax+32],1 ;ch_flags equ [edi+32] ;ä« £¨
@ -809,10 +811,14 @@ proc load_new_tile, tile:dword
mov ebx,run_file_70 mov ebx,run_file_70
int 0x40 int 0x40
mov edi,[tile] mov edi,[tile]
mov tile_err_f,al
; cmp ebx,0xffffffff ; cmp ebx,0xffffffff
; je .no_load ; je .no_load
cmp eax,0 cmp al,6 ;®è¨¡ª  6 - ª®£¤  ä ©« § ª®­ç¨«áï à ­ìè¥ ç¥¬ ¡ãä¥à
jne @f
xor al,al ;­ ¬ íâ  ®è¨¡ª  ­¥ áâà è­ , ¯®â®¬ã áâ ¢¨¬ ª®¤ à ¢­ë¬ 0, ª ª ¯à¨ ®¡ëç­®¬ ®âªàë⨨
@@:
mov tile_err_f,al
cmp al,0
jne .no_load jne .no_load
stdcall dword[img_decode], dword[bmp_icon],ebx,0 stdcall dword[img_decode], dword[bmp_icon],ebx,0
@ -822,11 +828,17 @@ proc load_new_tile, tile:dword
jmp @f jmp @f
.no_load: .no_load:
; mov edi,[tile]
mov al,byte[map.zoom] mov al,byte[map.zoom]
cmp tile_zoom,al cmp tile_zoom,al
jne @f jne @f
stdcall mem_copy, file_name,tile_rgb_icon,250 mov eax,tile_rgb_icon
mov bl,tile_err_f
add bl,'0' ;bl - ª®¤ ®è¨¡ª¨ ®âªàëâ¨ï
mov byte[eax],bl
inc eax
mov byte[eax],' '
inc eax
stdcall mem_copy, file_name,eax,250 ;ª®¯¨à㥬 ¯ãâì ª ä ©«ã ¯à¨ ®è¨¡®ç­®¬ ®âªàë⨨
@@: @@:
popad popad
ret ret