comparison GUI/UI/Books/UIMapBook.cpp @ 2508:491f0babd563

use_music_folder
author Ritor1
date Thu, 02 Oct 2014 11:52:31 +0600
parents 9b96a51011fb
children c7264ab7132f
comparison
equal deleted inserted replaced
2507:6dcc6e8dd041 2508:491f0babd563
270 int v26; // ecx@21 270 int v26; // ecx@21
271 unsigned __int16 *v27; // edi@21 271 unsigned __int16 *v27; // edi@21
272 int v28; // edx@21 272 int v28; // edx@21
273 int v29; // eax@21 273 int v29; // eax@21
274 double v30; // st7@23 274 double v30; // st7@23
275 // signed __int64 v31; // qax@23
276 // unsigned short *v32; // edx@23
277 int textr_width; // esi@23 275 int textr_width; // esi@23
278 // signed int v34; // eax@23
279 // signed int v35; // ecx@23
280 // int v36; // esi@27
281 // int v37; // ecx@27
282 // int v38; // edx@31
283 // unsigned int v39; // eax@33
284 // short *v40; // esi@33
285 // short *v41; // edi@33
286 // unsigned __int8 v42; // cf@33
287 // unsigned int v43; // ecx@33
288 // short *v44; // edi@33
289 // short *v45; // esi@33
290 // int v46; // ecx@33
291 signed int v47; // esi@38 276 signed int v47; // esi@38
292 signed int v48; // ecx@38 277 signed int v48; // ecx@38
293 int v49; // eax@38 278 int v49; // eax@38
294 signed int v50; // edx@55 279 signed int v50; // edx@55
295 unsigned int v51; // ecx@55 280 unsigned int v51; // ecx@55
296 // int result; // eax@72
297 int v54; // esi@75 281 int v54; // esi@75
298 int v55; // eax@75 282 int v55; // eax@75
299 // __int16 v56; // si@85
300 double v57; // st7@85 283 double v57; // st7@85
301 // int v58; // ebx@85
302 // signed __int64 v59; // qax@85
303 signed int v60; // edi@85 284 signed int v60; // edi@85
304 // signed __int64 v61; // qax@85
305 signed int v62; // ebx@85 285 signed int v62; // ebx@85
306 signed int v63; // esi@85 286 signed int v63; // esi@85
307 int v64; // eax@87 287 int v64; // eax@87
308 // unsigned int v65; // ebx@95
309 // unsigned short *v66; // edx@95
310 // unsigned __int16 *v67; // esi@96
311 // int v68; // edi@98
312 // unsigned __int16 v69; // cx@99
313 // signed int v73; // [sp-4h] [bp-48068h]@59
314 // unsigned __int16 v74; // [sp-4h] [bp-48068h]@79
315 //unsigned short map_texture_16[320 * 460 + 256]; // [sp+Ch] [bp-48058h]@23
316 // int v76; // [sp+4800Ch] [bp-58h]@23
317 //unsigned __int16 *v77; // [sp+48010h] [bp-54h]@27
318 unsigned __int16 *pPalette_16; // [sp+48014h] [bp-50h]@23 288 unsigned __int16 *pPalette_16; // [sp+48014h] [bp-50h]@23
319 int map_tile_X; // [sp+48020h] [bp-44h]@23 289 int map_tile_X; // [sp+48020h] [bp-44h]@23
320 //unsigned __int16* render16_data;
321 unsigned char* texture8_data; 290 unsigned char* texture8_data;
322 unsigned char* curr_line; 291 unsigned char* curr_line;
323 int scale_increment; 292 int scale_increment;
324 int scaled_posX; 293 int scaled_posX;
325 int scaled_posY; 294 int scaled_posY;
337 unsigned __int16 *v93; // [sp+48050h] [bp-14h]@16 306 unsigned __int16 *v93; // [sp+48050h] [bp-14h]@16
338 signed int screenWidth; // [sp+48054h] [bp-10h]@8 307 signed int screenWidth; // [sp+48054h] [bp-10h]@8
339 unsigned int v95; // [sp+48058h] [bp-Ch]@16 308 unsigned int v95; // [sp+48058h] [bp-Ch]@16
340 int map_tile_Y; // [sp+4805Ch] [bp-8h]@10 309 int map_tile_Y; // [sp+4805Ch] [bp-8h]@10
341 const void *v97; // [sp+48060h] [bp-4h]@16 310 const void *v97; // [sp+48060h] [bp-4h]@16
342 // unsigned short *a4a; // [sp+4806Ch] [bp+8h]@85
343 //int a5a; // [sp+48070h] [bp+Ch]@86
344 311
345 screenCenter_X = (signed int)(tl_x + br_x) / 2; 312 screenCenter_X = (signed int)(tl_x + br_x) / 2;
346 screenCenterY = (signed int)(tl_y + br_y) / 2; 313 screenCenterY = (signed int)(tl_y + br_y) / 2;
347 pRenderer->SetRasterClipRect(tl_x, tl_y, br_x, br_y); 314 pRenderer->SetRasterClipRect(tl_x, tl_y, br_x, br_y);
348 pCenterX = viewparams->sViewCenterX; 315 pCenterX = viewparams->sViewCenterX;
408 }*/ 375 }*/
409 } 376 }
410 else 377 else
411 { 378 {
412 black = Color16(0, 0, 0); 379 black = Color16(0, 0, 0);
413 teal = Color16(0, 0xFFu, 0xFFu); 380 teal = Color16(0, 0xFF, 0xFF);
414 uNumBlueFacesInBLVMinimap = 0; 381 uNumBlueFacesInBLVMinimap = 0;
415 if ( pIndoor->pMapOutlines->uNumOutlines ) 382 if ( pIndoor->pMapOutlines->uNumOutlines )
416 { 383 {
417 for ( uint i = 0; i < pIndoor->pMapOutlines->uNumOutlines; ++i ) 384 for ( uint i = 0; i < pIndoor->pMapOutlines->uNumOutlines; ++i )
418 { 385 {
419 if ( !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].Invisible() 386 if ( !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].Invisible()
420 || (pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].Invisible()) )) 387 || (pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].Invisible()) ))
421 { 388 {
422 if ( !(pIndoor->pMapOutlines->pOutlines[i].uFlags & 1) ) 389 if ( !(pIndoor->pMapOutlines->pOutlines[i].uFlags & 1) )
423 { 390 {
424 if ( !(!(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].uAttributes & FACE_UNKNOW4) 391 if ( !(!(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].uAttributes & FACE_UNKNOW7)
425 && !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].uAttributes & FACE_UNKNOW4) )) 392 && !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].uAttributes & FACE_UNKNOW7) ))
426 { 393 {
427 pIndoor->pMapOutlines->pOutlines[i].uFlags = pIndoor->pMapOutlines->pOutlines[i].uFlags | 1; 394 pIndoor->pMapOutlines->pOutlines[i].uFlags = pIndoor->pMapOutlines->pOutlines[i].uFlags | 1;
428 pIndoor->_visible_outlines[i >> 3] |= 1 << (7 - i % 8); 395 pIndoor->_visible_outlines[i >> 3] |= 1 << (7 - i % 8);
429 } 396 }
430 } 397 }
431 if ( (!(pIndoor->pMapOutlines->pOutlines[i].uFlags & 1) 398 if ( (!(pIndoor->pMapOutlines->pOutlines[i].uFlags & 1)
432 && !(!(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].uAttributes & FACE_UNKNOW4) 399 && !(!(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace1ID].uAttributes & FACE_UNKNOW7)
433 && !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].uAttributes & FACE_UNKNOW4) )) 400 && !(pIndoor->pFaces[pIndoor->pMapOutlines->pOutlines[i].uFace2ID].uAttributes & FACE_UNKNOW7) ))
434 || pIndoor->pMapOutlines->pOutlines[i].uFlags & 1) 401 || pIndoor->pMapOutlines->pOutlines[i].uFlags & 1)
435 { 402 {
436 v93 = (unsigned __int16 *)(pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex1ID].x - viewparams->sViewCenterX); 403 v93 = (unsigned __int16 *)(pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex1ID].x - viewparams->sViewCenterX);
437 screenHeight = pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex1ID].y - pCenterY; 404 screenHeight = pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex1ID].y - pCenterY;
438 v20 = pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex2ID].y - pCenterY; 405 v20 = pIndoor->pVertices[pIndoor->pMapOutlines->pOutlines[i].uVertex2ID].y - pCenterY;
543 pRenderer->RasterLine2D(v54 + 1, v55 - 1, v54 + 1, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu)); 510 pRenderer->RasterLine2D(v54 + 1, v55 - 1, v54 + 1, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu));
544 } 511 }
545 else 512 else
546 pRenderer->RasterLine2D(v54, screenCenterY - (int)v97, 513 pRenderer->RasterLine2D(v54, screenCenterY - (int)v97,
547 (fixpoint_mul((signed int)v93, viewparams->uMapBookMapZoom)) + screenCenter_X, 514 (fixpoint_mul((signed int)v93, viewparams->uMapBookMapZoom)) + screenCenter_X,
548 screenCenterY - (int)v97, Color16(0xFFu, 0xFFu, 0xFFu)); 515 screenCenterY - (int)v97, Color16(0xFF, 0xFF, 0xFF));
549 } 516 }
550 } 517 }
551 } 518 }
552 } 519 }
553 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) 520 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor)