Mercurial > mm7
comparison UI/Books/UIMapBook.cpp @ 1725:8de9b24ace86
m
author | Ritor1 |
---|---|
date | Wed, 25 Sep 2013 12:22:32 +0600 |
parents | e1c451f4d5ba |
children | 79b9306f573a |
comparison
equal
deleted
inserted
replaced
1724:8bf9a9d9740b | 1725:8de9b24ace86 |
---|---|
371 scale_increment = (1 << (pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2 + 16)) / viewparams->uMapBookMapZoom; | 371 scale_increment = (1 << (pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2 + 16)) / viewparams->uMapBookMapZoom; |
372 | 372 |
373 v30 = (double)(1 << (16 - pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2)); | 373 v30 = (double)(1 << (16 - pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2)); |
374 | 374 |
375 teal = (unsigned int)(signed __int64)((double)(viewparams->sViewCenterX - 22528 / (viewparams->uMapBookMapZoom / 384) + 32768) / v30) << 16; | 375 teal = (unsigned int)(signed __int64)((double)(viewparams->sViewCenterX - 22528 / (viewparams->uMapBookMapZoom / 384) + 32768) / v30) << 16; |
376 // v97 = (const void *)((unsigned int)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30) << 16); | 376 |
377 | |
378 // v32 = map_texture_16; | |
379 textr_width = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uTextureWidth; | 377 textr_width = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uTextureWidth; |
380 stepY_r = (int)(signed __int64)((double)(- pCenterY - 22528 / (viewparams->uMapBookMapZoom / 384)+ 32768) / v30) << 16; | 378 stepY_r = (int)(signed __int64)((double)(- pCenterY - 22528 / (viewparams->uMapBookMapZoom / 384)+ 32768) / v30) << 16; |
381 // v81 = (signed __int16)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30); | |
382 black = (signed __int16)(signed __int64)((double)(viewparams->sViewCenterX - 22528 / (viewparams->uMapBookMapZoom / 384) + 32768) / v30); | 379 black = (signed __int16)(signed __int64)((double)(viewparams->sViewCenterX - 22528 / (viewparams->uMapBookMapZoom / 384) + 32768) / v30); |
383 | 380 |
384 // v76 = textr_width; | |
385 scaled_posY = stepY_r >> 16; | 381 scaled_posY = stepY_r >> 16; |
386 //nearest neiborhood scaling | 382 //nearest neiborhood scaling |
387 if ( texture8_data) | 383 if ( texture8_data) |
388 { | 384 { |
389 for( uint i = 0; i < screenHeight; ++i ) | 385 for( uint i = 0; i < screenHeight; ++i ) |
466 } | 462 } |
467 viewparams->sViewCenterX = pCenterX; | 463 viewparams->sViewCenterX = pCenterX; |
468 } | 464 } |
469 } | 465 } |
470 v47 = ((unsigned __int64)((pParty->vPosition.x - viewparams->sViewCenterX) * (signed __int64)viewparams->uMapBookMapZoom) >> 16) + screenCenter_X - 3; | 466 v47 = ((unsigned __int64)((pParty->vPosition.x - viewparams->sViewCenterX) * (signed __int64)viewparams->uMapBookMapZoom) >> 16) + screenCenter_X - 3; |
471 //v81 = pParty->vPosition.y - pCenterY; | |
472 v97 = (const void *)((unsigned __int64)((pParty->vPosition.y - pCenterY) * (signed __int64)viewparams->uMapBookMapZoom) >> 16); | 467 v97 = (const void *)((unsigned __int64)((pParty->vPosition.y - pCenterY) * (signed __int64)viewparams->uMapBookMapZoom) >> 16); |
473 v48 = 1; | 468 v48 = 1; |
474 v49 = screenCenterY - (int)v97 - 3; | 469 v49 = screenCenterY - (int)v97 - 3; |
475 if ( v47 >= (signed int)tl_x ) | 470 if ( v47 >= (signed int)tl_x ) |
476 { | 471 { |
554 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) | 549 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) |
555 { | 550 { |
556 screenCenterY = br_x - tl_x + 1; | 551 screenCenterY = br_x - tl_x + 1; |
557 v95 = br_y - tl_y + 1; | 552 v95 = br_y - tl_y + 1; |
558 v77 = &pRenderer->pTargetSurface[tl_x + tl_y * pRenderer->uTargetSurfacePitch]; | 553 v77 = &pRenderer->pTargetSurface[tl_x + tl_y * pRenderer->uTargetSurfacePitch]; |
559 //v56 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2; | |
560 black = (1 << (pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2 + 16)) / viewparams->uMapBookMapZoom; | 554 black = (1 << (pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2 + 16)) / viewparams->uMapBookMapZoom; |
561 v57 = (double)(1 << (16 - pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2)); | 555 v57 = (double)(1 << (16 - pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2)); |
562 //v58 = 22528 / (viewparams->uMapBookMapZoom / 384); | |
563 //v59 = (signed __int64)((double)(viewparams->sViewCenterX - (22528 / (viewparams->uMapBookMapZoom / 384)) + 32768) / v57); | |
564 v60 = (int)((signed __int64)((double)(viewparams->sViewCenterX - (22528 / (viewparams->uMapBookMapZoom / 384)) + 32768) / v57)) << 16; | 556 v60 = (int)((signed __int64)((double)(viewparams->sViewCenterX - (22528 / (viewparams->uMapBookMapZoom / 384)) + 32768) / v57)) << 16; |
565 teal = v60 >> 16; | 557 teal = v60 >> 16; |
566 pPalette_16 = (unsigned __int16 *)(v60 >> 16); | 558 pPalette_16 = (unsigned __int16 *)(v60 >> 16); |
567 v97 = (const void *)((int)((signed __int64)((double)(viewparams->sViewCenterX - (22528 / (viewparams->uMapBookMapZoom / 384)) + 32768) / v57)) << 16); | 559 v97 = (const void *)((int)((signed __int64)((double)(viewparams->sViewCenterX - (22528 / (viewparams->uMapBookMapZoom / 384)) + 32768) / v57)) << 16); |
568 //v61 = (signed __int64)((double)(32768 - (22528 / (viewparams->uMapBookMapZoom / 384)) - pCenterY) / v57); | |
569 v62 = (int)((signed __int64)((double)(32768 - (22528 / (viewparams->uMapBookMapZoom / 384)) - pCenterY) / v57)) << 16; | 560 v62 = (int)((signed __int64)((double)(32768 - (22528 / (viewparams->uMapBookMapZoom / 384)) - pCenterY) / v57)) << 16; |
570 v63 = (signed __int16)((signed __int64)((double)(32768 - (22528 / (viewparams->uMapBookMapZoom / 384)) - pCenterY) / v57)); | 561 v63 = (signed __int16)((signed __int64)((double)(32768 - (22528 / (viewparams->uMapBookMapZoom / 384)) - pCenterY) / v57)); |
571 a4a = map_texture_16; | 562 a4a = map_texture_16; |
572 for ( screenCenter_X = 0; screenCenter_X < (signed int)v95; ++screenCenter_X ) | 563 for ( screenCenter_X = 0; screenCenter_X < (signed int)v95; ++screenCenter_X ) |
573 { | 564 { |