comparison mm7_5.cpp @ 1262:0aeac0b9ca30

included header cleanup
author Grumpy7
date Wed, 12 Jun 2013 21:07:34 +0200
parents b9747d9e9b4e
children 6bc88137a019
comparison
equal deleted inserted replaced
1261:cdee1d692a4a 1262:0aeac0b9ca30
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"
43 #include "stru298.h" 45 #include "stru298.h"
44 #include "Events2D.h" 46 #include "Events2D.h"
45 #include "texts.h" 47 #include "texts.h"
46 #include "Log.h" 48 #include "Log.h"
47 #include "UIHouses.h" 49 #include "UIHouses.h"
50 #include "Lights.h"
51 #include "Lights.h"
48 52
49 //----- (004304E7) -------------------------------------------------------- 53 //----- (004304E7) --------------------------------------------------------
50 void __cdecl GameUI_MsgProc() 54 void __cdecl GameUI_MsgProc()
51 { 55 {
52 //signed int v0; // edi@6 56 //signed int v0; // edi@6
3622 this->x = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->x; 3626 this->x = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->x;
3623 this->y = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->y; 3627 this->y = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->y;
3624 this->z = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->z; 3628 this->z = (1.0 / sqrt(this->x * this->x + this->y * this->y + this->z * this->z)) * this->z;
3625 } 3629 }
3626 3630
3631 //----- (00438526) --------------------------------------------------------
3632 stru11::stru11()
3633 {
3634 stru11 *v1; // esi@1
3635 signed int v2; // eax@1
3636 char *v3; // edx@1
3637
3638 v1 = this;
3639 v2 = 0;
3640 this->cpuid_00000000_eax_numops = 0;
3641 this->cpuid_00000001_eax = 0;
3642 this->cpuid_00000001_edx = 0;
3643 this->field_38 = 0;
3644 this->field_3C = 0;
3645 this->cpuid_80000000_edx = 0;
3646 this->cpuid_80000001_eax = 0;
3647 this->cpuid_80000001_edx = 0;
3648 this->cpuid_80000005_ebx = 0;
3649 this->cpuid_80000005_ecx = 0;
3650 this->cpuid_80000005_edx = 0;
3651 this->cpuid_80000006_ecx = 0;
3652 this->field_AC = 0;
3653 this->uProcessorManufacturer = 0;
3654 LOBYTE(this->cpuid_80000002_registers2[0]) = 0;
3655 v3 = (char *)&this->cpuid_00000002_eax;
3656 do
3657 {
3658 if ( v2 < 3 )
3659 *((int *)v3 - 9) = 0;
3660 if ( v2 < 4 )
3661 *(int *)v3 = 0;
3662 if ( v2 < 12 )
3663 *((int *)v3 + 17) = 0;
3664 if ( v2 < 13 )
3665 this->pCPUString[v2] = 0;
3666 if ( v2 < 30 )
3667 *((char *)this->field_40 + v2) = 0;
3668 *((char *)&this->cpuid_80000002_registers2[0] + v2++ + 1) = 0;
3669 v3 += 4;
3670 }
3671 while ( v2 < 48 );
3672 CheckCPU();
3673 }
3674
3627 //----- (004385B5) -------------------------------------------------------- 3675 //----- (004385B5) --------------------------------------------------------
3628 void stru11::CheckCPU() 3676 void stru11::CheckCPU()
3629 { 3677 {
3630 LOG_DECOMPILATION_WARNING(); 3678 LOG_DECOMPILATION_WARNING();
3631 /* 3679 /*