comparison Indoor.cpp @ 120:fe0e317c0de0

Camera rotation fixed. Sorta
author Nomad
date Sun, 10 Feb 2013 23:43:28 +0200
parents 9c0607679772
children cca78efb377e
comparison
equal deleted inserted replaced
119:be3c07c98861 120:fe0e317c0de0
371 LOBYTE(v0) = v0 | 2; 371 LOBYTE(v0) = v0 | 2;
372 _this.field_0_timer = pEventTimer->uTotalGameTimeElapsed; 372 _this.field_0_timer = pEventTimer->uTotalGameTimeElapsed;
373 _this.uFlags = v0; 373 _this.uFlags = v0;
374 _this.vPosition.x = pParty->vPosition.x 374 _this.vPosition.x = pParty->vPosition.x
375 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY) 375 - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY)
376 * (signed __int64)pParty->field_18) >> 16); 376 * (signed __int64)pParty->y_rotation_granularity) >> 16);
377 v2 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi); 377 v2 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi);
378 v3 = (unsigned __int64)(v2 * (signed __int64)pParty->field_18) >> 16; 378 v3 = (unsigned __int64)(v2 * (signed __int64)pParty->y_rotation_granularity) >> 16;
379 _this.field_1C_mb_fov = 65; 379 _this.field_1C_mb_fov = 65;
380 _this.vPosition.y = pParty->vPosition.y - v3; 380 _this.vPosition.y = pParty->vPosition.y - v3;
381 _this.sRotationY = pParty->sRotationY; 381 _this.sRotationY = pParty->sRotationY;
382 _this.sRotationX = pParty->sRotationX; 382 _this.sRotationX = pParty->sRotationX;
383 _this.pRenderTarget = pRenderer->pTargetSurface; 383 _this.pRenderTarget = pRenderer->pTargetSurface;