comparison Indoor.cpp @ 1390:613c77e51e38

Messed with spell effects drawing a bit.
author Nomad
date Thu, 18 Jul 2013 04:08:20 +0200
parents 729635c2bb40
children cc9a3a24d61d
comparison
equal deleted inserted replaced
1389:4dc34f7acb0b 1390:613c77e51e38
587 v23 = pFace->uBitmapID; 587 v23 = pFace->uBitmapID;
588 v27 = pBitmaps_LOD->pHardwareTextures[v23]; 588 v27 = pBitmaps_LOD->pHardwareTextures[v23];
589 } 589 }
590 590
591 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) 591 if (pFace->uAttributes & FACE_DO_NOT_LIGHT)
592 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); 592 pRenderer->DrawIndoorPolygonNoLight(uNumVerticesa, uFaceID);
593 else 593 else
594 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, PID(OBJECT_BModel, uFaceID), v17, 0); 594 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, PID(OBJECT_BModel, uFaceID), v17, 0);
595 return; 595 return;
596 } 596 }
597 } 597 }
5610 local_0.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8; 5610 local_0.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8;
5611 local_0.uDiffuse = 0xFF3C1E; 5611 local_0.uDiffuse = 0xFF3C1E;
5612 local_0.x = v5; 5612 local_0.x = v5;
5613 local_0.y = (double)v2->vPosition.y; 5613 local_0.y = (double)v2->vPosition.y;
5614 local_0.z = (double)v2->vPosition.z; 5614 local_0.z = (double)v2->vPosition.z;
5615 local_0.flt_10 = 0.0; 5615 local_0.r = 0.0;
5616 local_0.flt_14 = 0.0; 5616 local_0.g = 0.0;
5617 local_0.flt_18 = 0.0; 5617 local_0.b = 0.0;
5618 local_0.flt_28 = 1.0; 5618 local_0.flt_28 = 1.0;
5619 local_0.timeToLive = (rand() & 0x80) + 128; 5619 local_0.timeToLive = (rand() & 0x80) + 128;
5620 local_0.uTextureID = pBitmaps_LOD->LoadTexture("effpar01"); 5620 local_0.uTextureID = pBitmaps_LOD->LoadTexture("effpar01");
5621 pGame->pParticleEngine->AddParticle(&local_0); 5621 pGame->pParticleEngine->AddParticle(&local_0);
5622 return; 5622 return;
7064 if ( far_portal->viewport_right_side[max_y] >= near_portal->viewport_left_side[max_y] 7064 if ( far_portal->viewport_right_side[max_y] >= near_portal->viewport_left_side[max_y]
7065 && far_portal->viewport_left_side[max_y] <= near_portal->viewport_right_side[max_y] ) 7065 && far_portal->viewport_left_side[max_y] <= near_portal->viewport_right_side[max_y] )
7066 break; 7066 break;
7067 } 7067 }
7068 if ( min_y >= max_y ) 7068 if ( min_y >= max_y )
7069 return false;// incorect working portal faceID 1105(не до конца корректно работает портал фейс 1105 под определённым углом) 7069 return false;
7070 //************************************************************************************************************************************* 7070 //*************************************************************************************************************************************
7071 v59 = min_y; 7071 v59 = min_y;
7072 for ( v46 = max_y - min_y + 1; v46; --v46 ) 7072 for ( v46 = max_y - min_y + 1; v46; --v46 )
7073 { 7073 {
7074 if ( far_portal->viewport_left_side[v59] < near_portal->viewport_left_side[v59] ) 7074 if ( far_portal->viewport_left_side[v59] < near_portal->viewport_left_side[v59] )