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): game speed reset goes to normal speed, shown in percent
Olcay Seyganc29ae6a8ec13
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ceb17ead3..aa4e24844 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -655,6 +655,7 @@ found and fixed — EA's own, not port damage.**- The skirmish and LAN rooms are laid out again, on one grid. Each column heading sits over its own column instead of up to 18 pixels to the right of it. The seats and the settings page underneath them start and stop at the same two edges, and Play Game stands under the map and your win record on the right-hand pair. The open tab used to be lettered in a grey that measured about 2 to 1 against the panel and read as a button that was switched off. Play Game waits at the bottom right and the button that leaves the room sits at the bottom left, as far from it as the screen allows. With all eight seats taken, "USA Super Weapon General" still fits in its box. The online room keeps its old layout.- Skirmish keeps starting cash and the game speed slider there. LAN and online keep starting cash next to peace time and the superweapon rule. Before this they were scattered around whatever space each of the three lobby screens happened to have left over.- The game speed slider stops at 60. Its last notch used to read "--" and started the match at a thousand game frames a second, which no machine can play and every machine tried to. A speed saved on that notch comes back as 60.+- The speed can change during a skirmish or a mission, too. Numpad plus and minus move it a sixth at a time and say where it stands, 50% up to 200% and past it; Ctrl with numpad plus puts it back. The reset used to land on one and a half times normal speed and the readout gave a number of frames nobody could read as a speed. Network games keep the speed the host picked.- A Unit Limit box on the settings page caps the match at 840 units, shared out evenly: two players get 420 each, four get 210, eight get 105. Units standing and units waiting in a queue both count against your share, buildings do not, and the build buttons grey out when you reach it. A transport that rolls out full is charged for its riders while it is still in the queue, so a Troop Crawler costs nine and cannot slip eight Red Guards past the limit, and a pair of Red Guards costs two. A shift or control batch near the wall queues as many as still fit and stops there, and a button whose next order would not fit greys out. Your own count and your share sit in the top right corner next to the frame rate, so you can see the wall coming. The host ticks it; everybody else sees it ticked.- Superweapons are a dropdown instead of a tick box. Allow Superweapons is the game as it plays without a rule. Limit Superweapons leaves each player one Particle Cannon, one Nuclear Missile or one Scud Storm at a time. No Superweapons bars them.- No Superweapons can be picked. The dropdown sits low on the settings page, and its last row hung past the bottom edge of the panel: it drew, but a click on it went to nobody and the list stayed on whatever it said before. Any dropdown row past the edge of its panel takes the click now.diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cppindex 7a98b860b..be8d28efb 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp@@ -3590,7 +3590,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessageInt fps = TheGameEngine->getFramesPerSecondLimit();if( t == GameMessage::MSG_META_GAME_SPEED_RESET )- fps = DEFAULT_MAX_FPS;+ fps = LOGICFRAMES_PER_SECOND; // DEFAULT_MAX_FPS is 45, which put "normal" at one and a half timeselse if( t == GameMessage::MSG_META_GAME_SPEED_UP )fps += 5;else@@ -3600,7 +3600,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessageif( fps > MAX_LOGIC_FPS ) fps = MAX_LOGIC_FPS;TheGameEngine->setFramesPerSecondLimit( fps );- TheInGameUI->message( UnicodeString( L"Game speed: %d" ), fps );+ TheInGameUI->message( UnicodeString( L"Game speed: %d%%" ), fps * 100 / LOGICFRAMES_PER_SECOND );}disp = DESTROY_MESSAGE;break;