Mercurial > mm7
comparison Indoor.cpp @ 805:305ba6e71c71
m
author | Ritor1 |
---|---|
date | Mon, 25 Mar 2013 17:29:30 +0600 |
parents | 4a00901e063c |
children | e95389c8680a |
comparison
equal
deleted
inserted
replaced
804:9a3121bbc1d0 | 805:305ba6e71c71 |
---|---|
545 pDecalBuilder->ApplyDecals(a4a, 1, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0, pFace->uSectorID); | 545 pDecalBuilder->ApplyDecals(a4a, 1, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0, pFace->uSectorID); |
546 | 546 |
547 if (pFace->Fluid() && | 547 if (pFace->Fluid() && |
548 pFace->uBitmapID == pRenderer->hd_water_tile_id ) | 548 pFace->uBitmapID == pRenderer->hd_water_tile_id ) |
549 { | 549 { |
550 __debugbreak(); | |
551 v23 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; | 550 v23 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; |
552 goto LABEL_42; | 551 v27 = pBitmaps_LOD->pHardwareTextures[v23]; |
552 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) | |
553 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); | |
554 else | |
555 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | OBJECT_BModel, v17, 0); | |
556 return; | |
553 } | 557 } |
554 | |
555 if (pFace->Fluid()) | 558 if (pFace->Fluid()) |
556 { | 559 { |
557 //auto v24 = GetTickCount() / 4; | 560 //auto v24 = GetTickCount() / 4; |
558 //auto v25 = v24 - stru_5C6E00->uIntegerHalfPi; | 561 //auto v25 = v24 - stru_5C6E00->uIntegerHalfPi; |
559 uint eightSeconds = GetTickCount() % 8000; | 562 uint eightSeconds = GetTickCount() % 8000; |
561 | 564 |
562 //animte lava back and forth | 565 //animte lava back and forth |
563 for (uint i = 0; i < uNumVerticesa; ++i) | 566 for (uint i = 0; i < uNumVerticesa; ++i) |
564 //array_507D30[i].v += (double)(pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 & (unsigned int)(stru_5C6E00->SinCos(v25) >> 8)); | 567 //array_507D30[i].v += (double)(pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 & (unsigned int)(stru_5C6E00->SinCos(v25) >> 8)); |
565 array_507D30[i].v += pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 * cosf(angle); | 568 array_507D30[i].v += pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 * cosf(angle); |
566 | |
567 v23 = pFace->uBitmapID; | 569 v23 = pFace->uBitmapID; |
568 goto LABEL_42; | 570 v27 = pBitmaps_LOD->pHardwareTextures[v23]; |
571 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) | |
572 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); | |
573 else | |
574 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | OBJECT_BModel, v17, 0); | |
575 return; | |
569 } | 576 } |
570 else if (pFace->uAttributes & 0x4000) | 577 else if (pFace->uAttributes & 0x4000) |
571 { | 578 { |
572 v23 = pTextureFrameTable->GetFrameTexture(pFace->uBitmapID, pBLVRenderParams->field_0_timer_); | 579 v23 = pTextureFrameTable->GetFrameTexture(pFace->uBitmapID, pBLVRenderParams->field_0_timer_); |
573 LABEL_42: | |
574 v27 = pBitmaps_LOD->pHardwareTextures[v23]; | 580 v27 = pBitmaps_LOD->pHardwareTextures[v23]; |
575 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) | 581 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) |
576 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); | 582 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); |
577 else | 583 else |
578 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | OBJECT_BModel, v17, 0); | 584 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | OBJECT_BModel, v17, 0); |
579 return; | 585 return; |
580 } | 586 } |
581 v17 = 0xFFFFFFFF; | 587 v17 = 0xFFFFFFFF; |
582 v23 = pFace->uBitmapID; | 588 v23 = pFace->uBitmapID; |
583 goto LABEL_42; | 589 v27 = pBitmaps_LOD->pHardwareTextures[v23]; |
590 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) | |
591 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); | |
592 else | |
593 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | OBJECT_BModel, v17, 0); | |
594 return;; | |
584 } | 595 } |
585 } | 596 } |
586 } | 597 } |
587 } | 598 } |
588 | 599 |