mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
integrate game paused variable and refactor
This commit is contained in:
@@ -22,6 +22,7 @@ extern "C"
|
||||
#include "../addresses.h"
|
||||
#include "../config.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../game.h"
|
||||
#include "../interface/console.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../management/news_item.h"
|
||||
@@ -119,7 +120,7 @@ namespace Twitch
|
||||
{
|
||||
if (!_twitchIdle) return;
|
||||
if (IsTwitchEnabled()) {
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_GAME_PAUSED, uint8) != 0) return;
|
||||
if (game_is_paused()) return;
|
||||
|
||||
switch (_twitchState) {
|
||||
case TWITCH_STATE_LEFT:
|
||||
|
||||
Reference in New Issue
Block a user