@@ -311,7 +311,7 @@ GlobalData* GlobalData::m_theOriginal = nullptr;
311311 { " MaxTranslucentObjects" , INI ::parseInt, nullptr , offsetof ( GlobalData, m_maxVisibleTranslucentObjects) },
312312 { " OccludedColorLuminanceScale" , INI ::parseReal, nullptr , offsetof ( GlobalData, m_occludedLuminanceScale) },
313313
314- /* These are internal use only, they do not need file definitons
314+ /* These are internal use only, they do not need file definitions
315315 { "TerrainAmbientRGB", INI::parseRGBColor, nullptr, offsetof( GlobalData, m_terrainAmbient ) },
316316 { "TerrainDiffuseRGB", INI::parseRGBColor, nullptr, offsetof( GlobalData, m_terrainDiffuse ) },
317317 { "TerrainLightPos", INI::parseCoord3D, nullptr, offsetof( GlobalData, m_terrainLightPos ) },
@@ -331,7 +331,7 @@ GlobalData* GlobalData::m_theOriginal = nullptr;
331331 { " VideoOn" , INI ::parseBool, nullptr , offsetof ( GlobalData, m_videoOn ) },
332332 { " DisableCameraMovements" , INI ::parseBool, nullptr , offsetof ( GlobalData, m_disableCameraMovement ) },
333333
334- /* These are internal use only, they do not need file definitons
334+ /* These are internal use only, they do not need file definitions
335335 /// @todo remove this hack
336336 { "InGame", INI::parseBool, nullptr, offsetof( GlobalData, m_inGame ) },
337337*/
@@ -365,7 +365,7 @@ GlobalData* GlobalData::m_theOriginal = nullptr;
365365 { " AutoAflameParticleSystem" , INI ::parseAsciiString, nullptr , offsetof ( GlobalData, m_autoAflameParticleSystem ) },
366366 { " AutoAflameParticleMax" , INI ::parseInt, nullptr , offsetof ( GlobalData, m_autoAflameParticleMax ) },
367367
368- /* These are internal use only, they do not need file definitons
368+ /* These are internal use only, they do not need file definitions
369369 { "LatencyAverage", INI::parseInt, nullptr, offsetof( GlobalData, m_latencyAverage ) },
370370 { "LatencyAmplitude", INI::parseInt, nullptr, offsetof( GlobalData, m_latencyAmplitude ) },
371371 { "LatencyPeriod", INI::parseInt, nullptr, offsetof( GlobalData, m_latencyPeriod ) },
@@ -621,6 +621,7 @@ GlobalData::GlobalData()
621621 m_useTrees = 0 ;
622622 m_useTreeSway = TRUE ;
623623 m_useDrawModuleLOD = FALSE ;
624+ m_useHeatEffects = TRUE ;
624625 m_useFpsLimit = FALSE ;
625626 m_dumpAssetUsage = FALSE ;
626627 m_framesPerSecondLimit = 0 ;
@@ -1027,6 +1028,8 @@ GlobalData::GlobalData()
10271028
10281029 m_keyboardCameraRotateSpeed = 0 .1f ;
10291030
1031+ m_clientRetaliationModeEnabled = TRUE ; // On by default.
1032+
10301033}
10311034
10321035// -------------------------------------------------------------------------------------------------
@@ -1182,7 +1185,9 @@ void GlobalData::parseGameDataDefinition( INI* ini )
11821185
11831186 // override INI values with user preferences
11841187 OptionPreferences optionPref;
1185- TheWritableGlobalData->m_useAlternateMouse = optionPref.getAlternateMouseModeEnabled ();
1188+ TheWritableGlobalData->m_useAlternateMouse = optionPref.getAlternateMouseModeEnabled ();
1189+ TheWritableGlobalData->m_clientRetaliationModeEnabled = optionPref.getRetaliationModeEnabled ();
1190+ TheWritableGlobalData->m_doubleClickAttackMove = optionPref.getDoubleClickAttackMoveEnabled ();
11861191 TheWritableGlobalData->m_keyboardScrollFactor = optionPref.getScrollFactor ();
11871192 TheWritableGlobalData->m_drawScrollAnchor = optionPref.getDrawScrollAnchor ();
11881193 TheWritableGlobalData->m_moveScrollAnchor = optionPref.getMoveScrollAnchor ();
0 commit comments