| 1054 | } |
| 1055 | |
| 1056 | void World::CleanUpInit() |
| 1057 | { |
| 1058 | _nextMagazineID = 0; |
| 1059 | |
| 1060 | if (GLandscape) |
| 1061 | { |
| 1062 | _eastCenter = new AICenter(TEast, AICMDisabled); |
| 1063 | _westCenter = new AICenter(TWest, AICMDisabled); |
| 1064 | _guerrilaCenter = new AICenter(TGuerrila, AICMDisabled); |
| 1065 | _civilianCenter = new AICenter(TCivilian, AICMDisabled); |
| 1066 | _logicCenter = new AICenter(TLogic, AICMDisabled); |
| 1067 | } |
| 1068 | |
| 1069 | ResetErrors(); |
| 1070 | _players.Clear(); |
| 1071 | |
| 1072 | _showMap = false; |
| 1073 | _forceMap = false; |
| 1074 | Glob.clock.SetTimeInYear(8 * OneHour + 130 * OneDay); |
| 1075 | _scene.MainLight()->Recalculate(this); |
| 1076 | _scene.MainLightChanged(); |
| 1077 | |
| 1078 | for (int i = 0; i < MaxCameraType; i++) |
| 1079 | { |
| 1080 | _camHeading[i] = _camDive[i] = 0; |
| 1081 | _camHeadingWanted[i] = _camHeadingWanted[i] = 0; |
| 1082 | _camNear[i] = 1.0; |
| 1083 | _camMaxDist[i] = 1e10; |
| 1084 | } |
| 1085 | _camType = _camTypeMain = CamInternal; |
| 1086 | _cameraExternal = false; |
| 1087 | |
| 1088 | _cameraEffect = nullptr; |
| 1089 | |
| 1090 | _playerManual = false; |
| 1091 | _playerSuspended = false; |
| 1092 | |
| 1093 | #if PROFILE |
| 1094 | _acceleratedTime = 0.5; |
| 1095 | #else |
| 1096 | _acceleratedTime = 1.0; |
| 1097 | #endif |
| 1098 | |
| 1099 | Glob.time = Poseidon::Foundation::Time(0); |
| 1100 | _channelChanged = UITIME_MIN; |
| 1101 | |
| 1102 | #ifdef _WIN32 |
| 1103 | Poseidon::Foundation::FastCAlloc::CleanUpAll(); |
| 1104 | #endif |
| 1105 | } |
| 1106 | |
| 1107 | void World::CleanUp() |
| 1108 | { |
nothing calls this directly
no test coverage detected