forked from rosebudai/OpenRCT2-Web
Automatically reset speed to normal upon scenario completion. (#10998)
This commit is contained in:
1 parent
2a94632b32
commit
a2f8e8c72b
4 files changed
+9
No files matched your search
@@ -85,6 +85,12 @@ rct_string_id gGameCommandErrorText;
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
void game_reset_speed()
|
||||
{
|
||||
gGameSpeed = 1;
|
||||
window_invalidate_by_class(WC_TOP_TOOLBAR);
|
||||
}
|
||||
|
||||
void game_increase_game_speed()
|
||||
{
|
||||
gGameSpeed = std::min(gConfigGeneral.debugging_tools ? 5 : 4, gGameSpeed + 1);
|
||||
|
||||
Reference in new issue
Block a user