* MC2 had a lot of float variables initialized to constant * values on launch, so I set them all here for simplicity. */
| 107 | * values on launch, so I set them all here for simplicity. |
| 108 | */ |
| 109 | static void init_float_constants() { |
| 110 | /* 2.0f * sqrt(12.732395f) */ |
| 111 | glo_692E80 = sqrt_12_constant; // sub_629D10 |
| 112 | glo_692EAC = sqrt_12_constant; // sub_629D30 |
| 113 | glo_692EBC = sqrt_12_constant; // sub_629D50 |
| 114 | glo_692EC4 = sqrt_12_constant; // sub_629D70 |
| 115 | glo_692EC8 = sqrt_12_constant; // sub_629D90 |
| 116 | glo_696764 = sqrt_12_constant; // sub_629DF0 |
| 117 | glo_6967B0 = sqrt_12_constant; // sub_629E10 |
| 118 | glo_696850 = sqrt_12_constant; // sub_629E40 |
| 119 | glo_697B8C = sqrt_12_constant; // sub_629EA0 |
| 120 | glo_697C18 = sqrt_12_constant; // sub_629EC0 |
| 121 | glo_698490 = sqrt_12_constant; // sub_629F90 |
| 122 | glo_698620 = sqrt_12_constant; // sub_629FB0 |
| 123 | glo_69910C = sqrt_12_constant; // sub_62A050 |
| 124 | glo_6993A0 = sqrt_12_constant; // sub_62A070 |
| 125 | glo_69948C = sqrt_12_constant; // sub_62A0D0 |
| 126 | glo_699690 = sqrt_12_constant; // sub_62A0F0 |
| 127 | glo_69B5F8 = sqrt_12_constant; // sub_62A110 |
| 128 | glo_69B78C = sqrt_12_constant; // sub_62A260 |
| 129 | glo_69C7A8 = sqrt_12_constant; // sub_62A280 |
| 130 | glo_69C7AC = sqrt_12_constant; // sub_62A2A0 |
| 131 | glo_69C7B0 = sqrt_12_constant; // sub_62A2C0 |
| 132 | glo_69C7B4 = sqrt_12_constant; // sub_62A2E0 |
| 133 | glo_69C7BC = sqrt_12_constant; // sub_62A300 |
| 134 | glo_69C7C0 = sqrt_12_constant; // sub_62A320 |
| 135 | glo_69C7C4 = sqrt_12_constant; // sub_62A340 |
| 136 | glo_69C7C8 = sqrt_12_constant; // sub_62A360 |
| 137 | glo_69C7CC = sqrt_12_constant; // sub_62A380 |
| 138 | glo_69C7D8 = sqrt_12_constant; // sub_62A3A0 |
| 139 | glo_69C7E0 = sqrt_12_constant; // sub_62A3C0 |
| 140 | glo_6C2600 = sqrt_12_constant; // sub_62A3F0 |
| 141 | glo_6C521C = sqrt_12_constant; // sub_62A500 |
| 142 | |
| 143 | glo_699860 = 200.0f; // sub_62A130 |
| 144 | glo_69B698 = 5.0f / 6.0f; /* (44.704f / -26.8224f) * -0.5f */ // sub_62A140 |
| 145 | glo_69988C = 5.0f; // sub_62A1A0 |
| 146 | glo_699864 = 2.0f; // sub_62A1B0 |
| 147 | glo_69B658 = 0.2f; // sub_62A1C0 |
| 148 | glo_699868 = 0.22352f; // sub_62A1D0 |
| 149 | glo_69B69C = 44.704f; // sub_62A1E0 |
| 150 | glo_69B660 = 1.34112f; // sub_62A1F0 |
| 151 | glo_699888 = -1.78816f; // sub_62A200 |
| 152 | glo_69B664 = -26.8224f; // sub_62A210 |
| 153 | glo_69B65C = -5.36448f; /* -1.78816f * 3.0f */ // sub_62A220 |
| 154 | glo_69985C = -26.8224f; // sub_62A240 |
| 155 | glo_69B748 = 5.0f / 6.0f; // sub_62A250 |
| 156 | glo_6C39A4 = 50.0f; // sub_62A480 |
| 157 | glo_6C39A0 = 90.0f; // sub_62A490 |
| 158 | glo_6C520C = 26.8224f; /* 1609.344f / 60.0f */ // sub_62A4C0 |
| 159 | glo_6C5220 = 0.02f; /* 1.0f / 50.0f */ // sub_62A520 |
| 160 | glo_6C9034 = 9.8f; /* (float) fabs((double) -9.8f) */ // sub_62C580 |
| 161 | glo_6C9030 = 0.00525f; /* 0.035f * 0.15f */ // sub_62C590 |
| 162 | glo_6C902C = sqrt_9_8_constant; /* sqrt(9.8f / 0.00525f) * 6.0f */ // sub_62C5B0 |
| 163 | glo_6CE510 = 1.0f / 330.0f; // sub_62C670 |
| 164 | } |
| 165 | |
| 166 | static void mc2_xc() { |