Mercurial > mm7
comparison mm7_3.cpp @ 1570:a4a827ff5c95
Слияние
author | Ritor1 |
---|---|
date | Mon, 02 Sep 2013 18:49:26 +0600 |
parents | ff1867836af5 |
children | 46f6fc6f72fd 53265d238d94 |
comparison
equal
deleted
inserted
replaced
1569:5cc08e71a308 | 1570:a4a827ff5c95 |
---|---|
7758 sub_44987B("nwc.blv", MapStartPoint_Party); | 7758 sub_44987B("nwc.blv", MapStartPoint_Party); |
7759 pCurrentScreen = SCREEN_GAME; | 7759 pCurrentScreen = SCREEN_GAME; |
7760 return true; | 7760 return true; |
7761 } | 7761 } |
7762 | 7762 |
7763 //----- (0044C362) -------------------------------------------------------- | |
7764 void Vec3_int_::Normalize_float() | |
7765 { | |
7766 //Vec3_int_ *v1; // esi@1 | |
7767 double v2; // st6@1 | |
7768 float v3; // ST20_4@1 | |
7769 double v4; // st5@1 | |
7770 float v5; // ST18_4@1 | |
7771 double v6; // st4@1 | |
7772 float v7; // ST14_4@1 | |
7773 float v8; // ST24_4@1 | |
7774 float v9; // ST20_4@1 | |
7775 double v10; // ST0C_8@1 | |
7776 float v11; // ST18_4@1 | |
7777 double v12; // ST0C_8@1 | |
7778 float v13; // ST14_4@1 | |
7779 double v14; // ST0C_8@1 | |
7780 | |
7781 assert(false); | |
7782 //v1 = this; | |
7783 v2 = (double)this->x * 0.000015258789; | |
7784 v3 = v2; | |
7785 v4 = (double)this->y * 0.000015258789; | |
7786 v5 = v4; | |
7787 v6 = (double)this->z * 0.000015258789; | |
7788 v7 = v6; | |
7789 v8 = 1.0 / sqrt(v6 * v6 + v4 * v4 + v2 * v2); | |
7790 v9 = v8 * v3 * 65536.0; | |
7791 v10 = v9 + 6.7553994e15; | |
7792 this->x = LODWORD(v10); | |
7793 v11 = v8 * v5 * 65536.0; | |
7794 v12 = v11 + 6.7553994e15; | |
7795 this->y = LODWORD(v12); | |
7796 v13 = v8 * v7 * 65536.0; | |
7797 v14 = v13 + 6.7553994e15; | |
7798 this->z = LODWORD(v14); | |
7799 } | |
7800 | |
7801 //----- (00401000) -------------------------------------------------------- | 7763 //----- (00401000) -------------------------------------------------------- |
7802 void mm7__vector_constructor(void *a1, int objSize, int numObjs, int ( *constructor)(int)) | 7764 void mm7__vector_constructor(void *a1, int objSize, int numObjs, int ( *constructor)(int)) |
7803 { | 7765 { |
7804 void *v4; // esi@2 | 7766 void *v4; // esi@2 |
7805 int v5; // edi@2 | 7767 int v5; // edi@2 |