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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameclient): classic mouse edge scrolls in borderless and windowed
Olcay Seyganf0f1615f2fcd
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0244e7b7b..5133736b5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -366,6 +366,7 @@ found and fixed — EA's own, not port damage.**- Ordering a very large army works. A selection of more than 254 units reaches the game whole, and Ctrl+number groups keep all their units.- Hold Alt and drag with the middle mouse button, or hold Alt and turn the wheel, to tilt the camera between 20 and 60 degrees. Home resets heading, tilt and zoom, the way Numpad 5 does.- The side buttons on your mouse tilt the camera five degrees a press, forward flatter and back steeper, on Windows, Mac and Linux. The game used to ignore them.+- The screen edges scroll the map again in a borderless or ordinary window. Since 3.0.0 every player runs the Classic mouse, and the Classic mouse kept the 2003 rule of no edge scrolling in a window, whatever the "Edge Scroll In A Window" option said. Only fullscreen still scrolled. The option decides it now, and borderless always scrolls, since there is no desktop around it to move the pointer onto.## Aircraft, guards, and orders that used to be ignoreddiff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cppindex 1c92e4c15..dd57fe5c9 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp@@ -462,8 +462,9 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage// edge, so believing it would scroll the map for as long as the mouse sat on the desktop.// Nor while a watcher's director or player camera drives: the spectator page stands on the// top and right edges, and the pointer on its way to it took the camera away (ObserverCamera.h).- // The Classic mouse keeps retail's rule whatever Options.ini says.- const Bool edgeScrollAllowed = (!TheGlobalData->m_windowed || (TheGlobalData->m_edgeScrollInWindowedMode && !TheGlobalData->isClassicMouse()))+ // The Classic mouse honours the box too: it is every player's mouse since the launcher+ // stopped passing -mouse, and a borderless window has no desktop around it to scroll from.+ const Bool edgeScrollAllowed = (!TheGlobalData->m_windowed || TheGlobalData->m_edgeScrollInWindowedMode)&& TheMouse->isCursorInWindow() && !TheObserverCamera.isDriving();if (m_isScrolling)