Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(w3ddevice): isometric camera option on Options > Controls

Olcay Seyganf411dc2c94db
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 41887472b..93ba1b223 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -170,6 +170,7 @@ found and fixed — EA's own, not port damage.**
- A box drawn with Ctrl held takes those units back out of your selection instead of replacing it, so a group is trimmed by dragging over the corner of it rather than picked again from scratch. Held with Alt the box keeps only what can shoot: drag across your base and you get the tanks, not the dozers and supply trucks standing among them. Both are drag-only, and a single click still means exactly what it always did.
- A box dragged over your army and your economy together takes the army. The dozers, workers, supply trucks and hackers standing among the tanks stay where they are, and ambulances and troop carriers go with the soldiers they look after. A box with nobody military in it takes the workers the way it always did. Legacy keeps the old box.
- The three buttons each do one thing now. Left selects, and only selects. Right gives orders, and nothing it does moves the camera. The camera is on the middle button, and it scrolls the way the right button used to: the spot you pressed on stays put, and the further you pull away from it the faster the map runs. Hold Ctrl and the same drag turns the view instead. The wheel zooms toward whatever the cursor is over and the screen edges still scroll. The classic scheme, where left both selected and commanded and right scrolled and deselected, is gone rather than switched off, and the two checkboxes that used to choose between them are out of the options screen.
+- An isometric camera, on Options > Controls. It looks at the battlefield from far off through a narrow lens, so a tank at the top of the screen is drawn the same size as one at the bottom and a base reads like a city-builder's plan instead of shrinking into the distance. It buys no extra sight: the bottom and top of the screen land on the same ground the normal camera shows, hills included, measured to within 2.5% of the screen height. You still turn and zoom it the way you always did, and the box takes effect the moment you tick it, mid-match included.
- Drag the right button and you draw a line: the selection spreads itself evenly along it, in the order the units already stand, so a column arrives as a firing line instead of a queue. It is the line you actually drew, curves and all, however far you keep drawing it: a long sweep used to give up partway through and finish as one straight run to the cursor, and now it holds its shape to the end. Letting go over the sidebar finishes the order rather than leaving the line stuck to the cursor. Draw the line with the left button while attack move is armed and the whole line is an attack move: artillery spread across a front, each gun firing on what walks into it, instead of one clump on one spot. The left button, because that is what attack move is aimed with; with F armed a right drag draws nothing. Armed with attack instead, every unit fires on its own station along the line, which is a barrage laid across a ridge in one drag. This is what the right button freed up. `FormationDrag = no` in Options.ini turns it off if you would rather a slipped click did nothing.
- Selected units draw a thread to wherever they are going, with the pointer, tinted, sitting on the spot. Every order draws one: move, attack move, attack, force fire, ground fire, enter, dock, repair, heal, capture, hack, guard, a waypoint path. Green for a move, pink for an attack-move, red for anything that shoots, so a group told three different things reads as three different colours. Units standing together and headed the same way share one thread, from the middle of the knot to the middle of where they are going, so twenty tanks sent across the map draw one line instead of twenty laid on top of each other; a selection spread over the map draws one per knot, and a flank sent on its own still shows. An angry mob draws one thread for the whole mob, not one per rioter. An attack move and a shot at the ground both point at the spot you clicked: the attack move's thread used to wander off to whichever free ground each unit was steering for, and ground fire pointed at the middle of the nearest map cell. An attack move stays pink from start to finish, too. A unit that stopped to fight used to swing its thread onto the enemy it was fighting, and only swung it back to your destination once the enemy was dead. A dot and a ring stood in for the pointer for a while, and players asked for the pointer back. It is not a flash at the moment of the order: the line is asked of the unit every frame, so it lasts until the unit gets there, changes its mind or leaves your selection, and it shows on the formation line while you are still drawing it. A unit that has walked off the edge of the screen still draws its line, which is how you see where the half of your army you cannot see is headed. The animated ring the ground used to sprout wherever you clicked is gone: it flashed for a second and told you nothing the marker sitting on the destination does not, and that marker stays for as long as the order does. A marker that has just appeared slides the last few pixels up out of the bottom right and fades in as it lands, over about an eighth of a second, so a fresh order catches your eye without anything flashing. Aircraft draw their thread from the click, not from the moment they leave the runway. A plane parked on its airfield answers an order by starting its takeoff and puts the order itself aside until the wheels are up, so the taxi and the climb, which is exactly the stretch where you are wondering whether the strike went out at all, used to show nothing.
- A unit standing guard draws its marker on the ground it is guarding. A guard order clears the unit's goal on the way in, so every guard marker used to sit in the bottom left corner of the map with a thread running the whole way across it, whatever the unit was actually watching.
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index 6c1cf2c39..d9109b5e9 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -702,6 +702,14 @@ TOOLTIP:ZoomToCursor
"The wheel zooms towards whatever the cursor is over instead of the middle of the screen. Modern controls only."
END
+GUI:IsometricCamera
+"Isometric Camera"
+END
+
+TOOLTIP:IsometricCamera
+"The battlefield seen from far off, so a unit is the same size at the top of the screen as at the bottom. You still turn and zoom the camera."
+END
+
GUI:EdgeScrollWindowed
"Edge Scroll In A Window"
END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index d9238a85d..5a142d773 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -15261,6 +15261,14 @@ TOOLTIP:ZoomToCursor
"Tekerlek, ekranın ortası yerine imlecin üzerinde durduğu yere doğru yakınlaştırır. Yalnızca Modern kontrollerde."
END
+GUI:IsometricCamera
+"İzometrik Kamera"
+END
+
+TOOLTIP:IsometricCamera
+"Savaş alanı uzaktan görünür, bir birlik ekranın üstünde de altında da aynı boyda çizilir. Kamerayı yine sen döndürür ve yakınlaştırırsın."
+END
+
GUI:EdgeScrollWindowed
"Pencerede Kenardan Kaydır"
END
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
index ca012678a..07d296095 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
@@ -7002,6 +7002,53 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
END
CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 40 266, BOTTOMRIGHT: 264 290, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckIsometricCamera";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:IsometricCamera";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:IsometricCamera";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
index 2cc766a74..c698a0652 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
@@ -404,6 +404,7 @@ public:
Real m_buildPlacementOpacity; ///< how solid the structure riding the cursor is drawn, 0..1
Bool m_buildPlacementShadows; ///< whether that structure casts a shadow while it rides the cursor
Bool m_zoomToCursor; ///< the mouse wheel zooms toward whatever the cursor is over
+ Bool m_isometricCamera; ///< the tactical view from far off down a narrow cone, near enough orthographic
Bool m_formationDrag; ///< dragging the right button spreads the selection along the line drawn
Bool m_showAllyCursors; ///< in a network game, draw where each ally's mouse is pointing
Bool m_chromaLighting; ///< put the state of the match on Razer hardware
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
index da60ab275..f97985472 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
@@ -203,6 +203,7 @@ GlobalData* GlobalData::m_theOriginal = NULL;
{ "BuildPlacementOpacity", INI::parseReal, NULL, offsetof( GlobalData, m_buildPlacementOpacity ) },
{ "BuildPlacementShadows", INI::parseBool, NULL, offsetof( GlobalData, m_buildPlacementShadows ) },
{ "ZoomToCursor", INI::parseBool, NULL, offsetof( GlobalData, m_zoomToCursor ) },
+ { "IsometricCamera", INI::parseBool, NULL, offsetof( GlobalData, m_isometricCamera ) },
{ "FormationDrag", INI::parseBool, NULL, offsetof( GlobalData, m_formationDrag ) },
{ "ShowAllyCursors", INI::parseBool, NULL, offsetof( GlobalData, m_showAllyCursors ) },
{ "ChromaLighting", INI::parseBool, NULL, offsetof( GlobalData, m_chromaLighting ) },
@@ -1132,6 +1133,7 @@ GlobalData::GlobalData()
m_edgeScrollInWindowedMode = TRUE;
m_snapCameraRotateTo45 = TRUE;
m_zoomToCursor = TRUE;
+ m_isometricCamera = FALSE;
// the right button no longer scrolls, so a right-drag is free to mean something
m_formationDrag = TRUE;
m_showAllyCursors = TRUE;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
index 6f6473846..56ab5757a 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
@@ -57,6 +57,7 @@ static void set_m_cameraBoundaryMargin( Int value )
OPTION_BOOL_ACCESSORS( m_edgeScrollInWindowedMode )
OPTION_BOOL_ACCESSORS( m_snapCameraRotateTo45 )
OPTION_BOOL_ACCESSORS( m_zoomToCursor )
+OPTION_BOOL_ACCESSORS( m_isometricCamera )
OPTION_BOOL_ACCESSORS( m_formationDrag )
OPTION_BOOL_ACCESSORS( m_showAllyCursors )
OPTION_BOOL_ACCESSORS( m_chromaLighting )
@@ -228,6 +229,12 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_zoomToCursor, set_m_zoomToCursor },
+ // The battlefield from far off down a narrow cone, so a unit is the same size wherever it
+ // stands on the screen. The heading stays the player's. On Options > Controls.
+ { "IsometricCamera", OPT_WND( "CheckIsometricCamera" ), "GUI:IsometricCamera",
+ OPTION_BOOL, APPLY_LIVE, 0, 1,
+ get_m_isometricCamera, set_m_isometricCamera },
+
// A right drag over the ground spreads the selection along the line drawn instead of sending
// everyone to one point. On by default - the right button stopped scrolling, so the drag was
// free - and here for anyone who would rather a slipped click did nothing at all.
diff --git a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
index 2eb3cd99b..6a28a346e 100644
--- a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
+++ b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
@@ -287,6 +287,7 @@ private:
Region2D m_cameraConstraint; ///< m_pos should be constrained to be within this area
Bool m_cameraConstraintValid; ///< if f, recalc cam constraints
Bool m_recalcCamera; ///< if t, rebuild the camera transform in the next render update
+ Bool m_isometricApplied; ///< the camera was last built isometric; the option differing rebuilds it
Bool m_zoomAnchorValid; ///< a wheel zoom is holding the ground under the cursor
ICoord2D m_zoomAnchorPixel; ///< the pixel the wheel was spun over
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
index ab357bd31..df3dae168 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
@@ -196,6 +196,7 @@ W3DView::W3DView()
m_shakerAngles.Z =0.0f;
m_recalcCamera = false;
+ m_isometricApplied = false;
m_zoomAnchorValid = false;
m_zoomAnchorTerrainHeight = 0.0f;
m_scrollWheelHeight = 0.0f;
@@ -260,6 +261,8 @@ void W3DView::setWidth(Int width)
//boundary, not black.
m_3DCamera->Set_View_Plane((Real)width/(Real)TheDisplay->getWidth()
* ViewHorizontalFovForScreen(TheDisplay->getWidth(), TheDisplay->getHeight()),-1);
+ // the isometric camera narrows the cone again in setCameraTransform
+ m_recalcCamera = true;
}
//-------------------------------------------------------------------------------------------------
@@ -646,6 +649,37 @@ void W3DView::stopDoingScriptedCamera( void )
m_doingScriptedCameraLock = false;
}
+//-------------------------------------------------------------------------------------------------
+// Where a descending ray from the eye first meets the terrain, walked a cell at a time and then
+// halved down to a tenth of a unit. Terrain never goes below zero, so a ray that gets there
+// without meeting it stops there. The terrain's own Cast_Ray tests every triangle under the
+// ray's bounding rectangle, which for a shallow ray across the screen is thousands of them.
+static Vector3 groundUnderRay( const Vector3& eye, const Vector3& direction )
+{
+ const Real step = MAP_XY_FACTOR;
+ const Int halvings = 7;
+ Real below = 0.0f;
+ Real above = 0.0f;
+ for( ;; )
+ {
+ const Vector3 point = eye + direction * below;
+ if( point.Z <= 0.0f || point.Z <= TheTerrainLogic->getGroundHeight( point.X, point.Y ) )
+ break;
+ above = below;
+ below += step;
+ }
+ for( Int halving = 0; halving < halvings; ++halving )
+ {
+ const Real middle = ( above + below ) * 0.5f;
+ const Vector3 point = eye + direction * middle;
+ if( point.Z <= TheTerrainLogic->getGroundHeight( point.X, point.Y ) )
+ below = middle;
+ else
+ above = middle;
+ }
+ return eye + direction * below;
+}
+
//-------------------------------------------------------------------------------------------------
void W3DView::setCameraTransform( void )
{
@@ -706,6 +740,70 @@ void W3DView::setCameraTransform( void )
// rebuild it (even if we just did it due to camera constraints)
buildCameraTransform( &cameraTransform );
+
+ // The isometric camera: a 4 degree cone from far away is near enough orthographic that a tank
+ // is drawn the same size at the top of the screen as at the bottom. It is not a real
+ // orthographic projection because CameraClass::Update_Frustum always builds a perspective
+ // culling frustum. It keeps the player's heading and sees what the perspective camera would:
+ // the rays through the middle of the bottom and top screen edges are cast onto the terrain, and
+ // the isometric frame's bottom and top edges are put through those same two points, so neither
+ // camera sees further than the other. Its width is the perspective frame's width averaged over
+ // those two points. The elevation is whatever makes that fit, about 37 degrees at the default
+ // pitch on flat ground. Rotating and zooming work as they always did.
+ const Bool wasIsometric = m_isometricApplied;
+ m_isometricApplied = TheGlobalData->m_isometricCamera;
+ const Real perspectiveFov = (Real)getWidth() / (Real)TheDisplay->getWidth()
+ * ViewHorizontalFovForScreen(TheDisplay->getWidth(), TheDisplay->getHeight());
+ if (m_isometricApplied)
+ {
+ const Real isometricFov = DEG_TO_RADF(4.0f);
+ // a far edge at the horizon would reach no ground at all
+ const Real shallowestFarEdge = DEG_TO_RADF(5.0f);
+ const Real lowestElevation = DEG_TO_RADF(15.0f);
+ const Real highestElevation = DEG_TO_RADF(75.0f);
+ // the tallest thing standing on the frame's ground, above and below the depth it spans
+ const Real depthMargin = 1000.0f;
+
+ const Real tanHalfWidth = tan(perspectiveFov * 0.5f);
+ const Real halfHeightAngle = atan(tanHalfWidth * (Real)getHeight() / (Real)getWidth());
+ const Vector3 eye = cameraTransform.Get_Translation();
+ const Vector3 forward = -cameraTransform.Get_Z_Vector(); // a W3D camera looks down its -Z
+ const Real behind = atan2(-forward.Y, -forward.X);
+ const Vector3 ahead(-cos(behind), -sin(behind), 0.0f);
+ const Real centreDepression = asin(-forward.Z);
+ const Real nearDepression = centreDepression + halfHeightAngle;
+ const Real farDepression = max(centreDepression - halfHeightAngle, shallowestFarEdge);
+
+ const Vector3 nearRay = ahead * cos(nearDepression) + Vector3(0.0f, 0.0f, -sin(nearDepression));
+ const Vector3 farRay = ahead * cos(farDepression) + Vector3(0.0f, 0.0f, -sin(farDepression));
+ const Vector3 nearGround = groundUnderRay(eye, nearRay);
+ const Vector3 farGround = groundUnderRay(eye, farRay);
+
+ const Real groundWidth = tanHalfWidth * (Vector3::Dot_Product(nearGround - eye, forward)
+ + Vector3::Dot_Product(farGround - eye, forward));
+ const Real screenHeightInWorld = groundWidth * (Real)getHeight() / (Real)getWidth();
+ const Real groundDepth = Vector3::Dot_Product(farGround - nearGround, ahead);
+ const Real rise = farGround.Z - nearGround.Z;
+ const Real span = sqrt(groundDepth * groundDepth + rise * rise);
+ const Real elevation = WWMath::Clamp(
+ (Real)(asin(min(1.0f, screenHeightInWorld / span)) - atan2(rise, groundDepth)),
+ lowestElevation, highestElevation);
+
+ const Vector3 target = (nearGround + farGround) * 0.5f;
+ const Real distance = groundWidth * 0.5f / tan(isometricFov * 0.5f);
+ const Vector3 isometricEye(target.X + distance * cos(elevation) * cos(behind),
+ target.Y + distance * cos(elevation) * sin(behind),
+ target.Z + distance * sin(elevation));
+ cameraTransform.Make_Identity();
+ cameraTransform.Look_At(isometricEye, target, 0);
+ m_3DCamera->Set_View_Plane(isometricFov, -1);
+ m_3DCamera->Set_Clip_Planes(distance - span - depthMargin, distance + span + depthMargin);
+ }
+ else if (wasIsometric)
+ {
+ m_3DCamera->Set_View_Plane(perspectiveFov, -1);
+ }
+
m_3DCamera->Set_Transform( cameraTransform );
if (TheTerrainRenderObject)
@@ -1571,7 +1669,7 @@ void W3DView::update(void)
}
// (gth) C&C3 if m_isCameraSlaved then force the camera to update each frame
- if ((recalcCamera) || (m_isCameraSlaved)) {
+ if ((recalcCamera) || (m_isCameraSlaved) || TheGlobalData->m_isometricCamera != m_isometricApplied) {
setCameraTransform();
}
m_recalcCamera = false;
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index 9c4e52514..4e32187f7 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -153,6 +153,7 @@ NEW_CONTROLS = [
(COMBO, "ComboBoxLanguage", None),
(CHECK, "CheckOrderLines", "GUI:OrderLines"),
(CHECK, "CheckZoomToCursor", "GUI:ZoomToCursor"),
+ (CHECK, "CheckIsometricCamera", "GUI:IsometricCamera"),
(CHECK, "CheckTreeSway", "GUI:TreeSway"),
(CHECK, "CheckInfantryShadows", "GUI:InfantryShadows"),
(CHECK, "CheckProjectileShadows", "GUI:ProjectileShadows"),
@@ -261,7 +262,8 @@ GROUP_LAYOUT = [
("PageControls", 0, "GUI:OptionsGroupScrolling", [
setting("ScrollSpeedLabel", "SliderScrollSpeed", "ValueScrollSpeed"),
- ("check", "CheckZoomToCursor")]),
+ ("check", "CheckZoomToCursor"),
+ ("check", "CheckIsometricCamera")]),
("PageControls", 1, "GUI:OptionsGroupOrders", [
("check", "Retaliation"),
("check", "CheckDoubleClickAttackMove")]),