1
0
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:
Ted John
2016-04-23 13:34:55 +01:00
parent 28aa9fe707
commit ee509caf35
25 changed files with 79 additions and 69 deletions

View File

@@ -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: