Mercurial > mm7
comparison Outdoor.cpp @ 186:d65528fc3bda
D3D constants, shore tiles, camera flags
author | Nomad |
---|---|
date | Fri, 15 Feb 2013 19:53:40 +0200 |
parents | 16d257ffc802 |
children | 49728858c35e f96601c7e503 |
comparison
equal
deleted
inserted
replaced
185:16d257ffc802 | 186:d65528fc3bda |
---|---|
44 | 44 |
45 | 45 |
46 //----- (0047A59E) -------------------------------------------------------- | 46 //----- (0047A59E) -------------------------------------------------------- |
47 void OutdoorLocation::ExecDraw(unsigned int bRedraw) | 47 void OutdoorLocation::ExecDraw(unsigned int bRedraw) |
48 { | 48 { |
49 int v1; // edi@1 | |
50 //unsigned int v2; // ebx@1 | 49 //unsigned int v2; // ebx@1 |
51 int v3; // ST18_4@3 | 50 int v3; // ST18_4@3 |
52 int v4; // ST04_4@19 | 51 int v4; // ST04_4@19 |
53 int v5; // eax@19 | 52 int v5; // eax@19 |
54 | 53 |
55 v1 = 0; | 54 pIndoorCamera->flags = 0; |
56 //v2 = bRedraw; | 55 if (viewparams->draw_d3d_outlines) |
57 if ( viewparams->field_54 ) | 56 pIndoorCamera->flags |= INDOOR_CAMERA_DRAW_D3D_OUTLINES; |
58 v1 = 2; | 57 |
59 pIndoorCamera->sRotationX = pParty->sRotationX; | 58 pIndoorCamera->sRotationX = pParty->sRotationX; |
60 pIndoorCamera->sRotationY = pParty->sRotationY; | 59 pIndoorCamera->sRotationY = pParty->sRotationY; |
61 pIndoorCamera->pos.x = pParty->vPosition.x | 60 pIndoorCamera->pos.x = pParty->vPosition.x |
62 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY) | 61 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY) |
63 * (signed __int64)pParty->y_rotation_granularity) >> 16); | 62 * (signed __int64)pParty->y_rotation_granularity) >> 16); |
64 //v3 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi); | |
65 pIndoorCamera->field_4C = v1; | |
66 pIndoorCamera->pos.y = pParty->vPosition.y - pParty->y_rotation_granularity * ((stru_5C6E00->SinCos(pParty->sRotationY)) >> 16); | 63 pIndoorCamera->pos.y = pParty->vPosition.y - pParty->y_rotation_granularity * ((stru_5C6E00->SinCos(pParty->sRotationY)) >> 16); |
67 pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel; | 64 pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel; |
68 if (bRedraw || pRenderer->pRenderD3D) | 65 if (bRedraw || pRenderer->pRenderD3D) |
69 { | 66 { |
70 ResetStru148s(); | 67 ResetStru148s(); |