Mercurial > mm7
comparison mm7_5.cpp @ 1264:6bc88137a019
Merge
author | Gloval |
---|---|
date | Thu, 13 Jun 2013 00:56:22 +0400 |
parents | 73269755dd89 0aeac0b9ca30 |
children | 2929c4406d2c |
comparison
equal
deleted
inserted
replaced
1263:73269755dd89 | 1264:6bc88137a019 |
---|---|
2 #define _CRT_SECURE_NO_WARNINGS | 2 #define _CRT_SECURE_NO_WARNINGS |
3 #endif | 3 #endif |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 | 6 |
7 #include "Texture.h" | |
8 #include "mm7_data.h" | |
7 #include "VideoPlayer.h" | 9 #include "VideoPlayer.h" |
8 #include "Sprites.h" | 10 #include "Sprites.h" |
9 #include "MapInfo.h" | 11 #include "MapInfo.h" |
10 #include "BSPModel.h" | 12 #include "BSPModel.h" |
11 #include "OutdoorCamera.h" | 13 #include "OutdoorCamera.h" |
44 #include "stru298.h" | 46 #include "stru298.h" |
45 #include "Events2D.h" | 47 #include "Events2D.h" |
46 #include "texts.h" | 48 #include "texts.h" |
47 #include "Log.h" | 49 #include "Log.h" |
48 #include "UIHouses.h" | 50 #include "UIHouses.h" |
51 #include "Lights.h" | |
52 #include "Lights.h" | |
49 | 53 |
50 //----- (004304E7) -------------------------------------------------------- | 54 //----- (004304E7) -------------------------------------------------------- |
51 void __cdecl GameUI_MsgProc() | 55 void __cdecl GameUI_MsgProc() |
52 { | 56 { |
53 //signed int v0; // edi@6 | 57 //signed int v0; // edi@6 |
3623 this->x = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->x; | 3627 this->x = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->x; |
3624 this->y = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->y; | 3628 this->y = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->y; |
3625 this->z = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->z; | 3629 this->z = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->z; |
3626 } | 3630 } |
3627 | 3631 |
3632 //----- (00438526) -------------------------------------------------------- | |
3633 stru11::stru11() | |
3634 { | |
3635 stru11 *v1; // esi@1 | |
3636 signed int v2; // eax@1 | |
3637 char *v3; // edx@1 | |
3638 | |
3639 v1 = this; | |
3640 v2 = 0; | |
3641 this->cpuid_00000000_eax_numops = 0; | |
3642 this->cpuid_00000001_eax = 0; | |
3643 this->cpuid_00000001_edx = 0; | |
3644 this->field_38 = 0; | |
3645 this->field_3C = 0; | |
3646 this->cpuid_80000000_edx = 0; | |
3647 this->cpuid_80000001_eax = 0; | |
3648 this->cpuid_80000001_edx = 0; | |
3649 this->cpuid_80000005_ebx = 0; | |
3650 this->cpuid_80000005_ecx = 0; | |
3651 this->cpuid_80000005_edx = 0; | |
3652 this->cpuid_80000006_ecx = 0; | |
3653 this->field_AC = 0; | |
3654 this->uProcessorManufacturer = 0; | |
3655 LOBYTE(this->cpuid_80000002_registers2[0]) = 0; | |
3656 v3 = (char *)&this->cpuid_00000002_eax; | |
3657 do | |
3658 { | |
3659 if ( v2 < 3 ) | |
3660 *((int *)v3 - 9) = 0; | |
3661 if ( v2 < 4 ) | |
3662 *(int *)v3 = 0; | |
3663 if ( v2 < 12 ) | |
3664 *((int *)v3 + 17) = 0; | |
3665 if ( v2 < 13 ) | |
3666 this->pCPUString[v2] = 0; | |
3667 if ( v2 < 30 ) | |
3668 *((char *)this->field_40 + v2) = 0; | |
3669 *((char *)&this->cpuid_80000002_registers2[0] + v2++ + 1) = 0; | |
3670 v3 += 4; | |
3671 } | |
3672 while ( v2 < 48 ); | |
3673 CheckCPU(); | |
3674 } | |
3675 | |
3628 //----- (004385B5) -------------------------------------------------------- | 3676 //----- (004385B5) -------------------------------------------------------- |
3629 void stru11::CheckCPU() | 3677 void stru11::CheckCPU() |
3630 { | 3678 { |
3631 LOG_DECOMPILATION_WARNING(); | 3679 LOG_DECOMPILATION_WARNING(); |
3632 /* | 3680 /* |