comparison Indoor.cpp @ 186:d65528fc3bda

D3D constants, shore tiles, camera flags
author Nomad
date Fri, 15 Feb 2013 19:53:40 +0200
parents cca78efb377e
children 4a5559c728a5
comparison
equal deleted inserted replaced
185:16d257ffc802 186:d65528fc3bda
20 #include "AudioPlayer.h" 20 #include "AudioPlayer.h"
21 #include "Log.h" 21 #include "Log.h"
22 #include "TurnEngine.h" 22 #include "TurnEngine.h"
23 #include "PaletteManager.h" 23 #include "PaletteManager.h"
24 #include "MapInfo.h" 24 #include "MapInfo.h"
25 #include "IndoorCamera.h"
25 26
26 #include "mm7_data.h" 27 #include "mm7_data.h"
27 28
28 29
29 30
357 358
358 359
359 //----- (00441BD4) -------------------------------------------------------- 360 //----- (00441BD4) --------------------------------------------------------
360 void IndoorLocation::Draw() 361 void IndoorLocation::Draw()
361 { 362 {
362 int v0; // eax@1 363 //int v0; // eax@1
363 IndoorLocation_drawstru _this; // [sp+0h] [bp-4Ch]@5 364 IndoorLocation_drawstru _this; // [sp+0h] [bp-4Ch]@5
364 int v2; // [sp+44h] [bp-8h]@5 365 int v2; // [sp+44h] [bp-8h]@5
365 int v3; // [sp+48h] [bp-4h]@5 366 int v3; // [sp+48h] [bp-4h]@5
366 367
367 v0 = 0; 368 _this.uFlags = 0;
368 if ( viewparams->field_50_draw_debug_outlines ) 369 if (viewparams->draw_sw_outlines)
369 v0 = 1; 370 _this.uFlags |= INDOOR_CAMERA_DRAW_SW_OUTLINES;
370 if ( viewparams->field_54 ) 371 if (viewparams->draw_d3d_outlines)
371 LOBYTE(v0) = v0 | 2; 372 _this.uFlags |= INDOOR_CAMERA_DRAW_D3D_OUTLINES;
373
372 _this.field_0_timer = pEventTimer->uTotalGameTimeElapsed; 374 _this.field_0_timer = pEventTimer->uTotalGameTimeElapsed;
373 _this.uFlags = v0;
374 _this.vPosition.x = pParty->vPosition.x 375 _this.vPosition.x = pParty->vPosition.x
375 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY) 376 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY)
376 * (signed __int64)pParty->y_rotation_granularity) >> 16); 377 * (signed __int64)pParty->y_rotation_granularity) >> 16);
377 v2 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi); 378 v2 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi);
378 v3 = (unsigned __int64)(v2 * (signed __int64)pParty->y_rotation_granularity) >> 16; 379 v3 = (unsigned __int64)(v2 * (signed __int64)pParty->y_rotation_granularity) >> 16;