MHeasell / rwe

Robot War Engine - Real-time strategy game engine compatible with Total Annihilation
https://www.robotwarengine.com/
GNU General Public License v3.0
115 stars 16 forks source link

Implement Pause/Unpause with Pause/Break key In-Game (Single Player) #153

Open KevinHake opened 2 years ago

KevinHake commented 2 years ago

OTA is buggy in that scrolling is sometimes broken when the game is paused, and sometimes not. I'm not certain which was the original intent, but given that commands can be issued/queued while the game is paused, I will assume scrolling should NOT be disabled when the game is paused.

Simple toggle of the pause state when Pause Break is pressed. It appears that all hotkeys/user commands remain functioning as normal (issuance and cancellation), only the simulation clock has stopped.

Note this is really a special case of game speed adjustment #175, where time between frames toggles between infinity and whatever time was set when pause took effect