comparison mm7_5.cpp @ 1178:f7ad7bd0a806

Слияние
author Ritor1
date Tue, 04 Jun 2013 09:44:53 +0600
parents 29a8defbad9e
children fa30ea497e94
comparison
equal deleted inserted replaced
1177:ce5ff6d32200 1178:f7ad7bd0a806
1 #ifdef _MSC_VER
2 #define _CRT_SECURE_NO_WARNINGS
3 #endif
4
1 #include <assert.h> 5 #include <assert.h>
2 6
3 #include "VideoPlayer.h" 7 #include "VideoPlayer.h"
4 #include "Sprites.h" 8 #include "Sprites.h"
5 #include "MapInfo.h" 9 #include "MapInfo.h"
9306 { 9310 {
9307 assert(uTextureId != -1); 9311 assert(uTextureId != -1);
9308 ZBuffer_DoFill(pZBuffer, pIcons_LOD->GetTexture(uTextureId), iZValue); 9312 ZBuffer_DoFill(pZBuffer, pIcons_LOD->GetTexture(uTextureId), iZValue);
9309 } 9313 }
9310 9314
9311 //----- (0040F845) -------------------------------------------------------- 9315
9312 __int16 __fastcall sub_40F845(int a1, int a2, int a3, int a4, int a5, __int16 a6, int a7)
9313 {
9314 int v7; // edi@1
9315 int v8; // esi@1
9316 int v9; // ecx@2
9317 int v10; // eax@3
9318
9319 v7 = a1;
9320 v8 = a2;
9321 do
9322 {
9323 v9 = a3;
9324 do
9325 {
9326 v10 = *(char *)v8++;
9327 if ( (char)v10 )
9328 {
9329 if ( (char)v10 == 1 )
9330 {
9331 LOWORD(v10) = *(short *)(a5 + 2 * v10);
9332 *(short *)v7 = v10;
9333 }
9334 else
9335 {
9336 LOWORD(v10) = a6;
9337 *(short *)v7 = a6;
9338 }
9339 }
9340 v7 += 2;
9341 --v9;
9342 }
9343 while ( v9 );
9344 v7 = a7 + v7 - a3 - a3;
9345 --a4;
9346 }
9347 while ( a4 );
9348 return v10;
9349 }
9350 9316
9351 //----- (0040F89C) -------------------------------------------------------- 9317 //----- (0040F89C) --------------------------------------------------------
9352 void __fastcall ZBuffer_DoFill(int *pZBuffer, Texture *pTex, int uZValue) 9318 void __fastcall ZBuffer_DoFill(int *pZBuffer, Texture *pTex, int uZValue)
9353 { 9319 {
9354 void *v3; // eax@3 9320 void *v3; // eax@3