From 967819a5b8a7b06746186f39279151d6e2a195fe Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 13 Jun 2018 23:11:29 +0200 Subject: [PATCH] Add a method for testing if a demo is playing --- src/event.cxx | 6 ++++++ src/event.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/event.cxx b/src/event.cxx index 5201f93..57fcf29 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -1637,6 +1637,12 @@ CEvent::~CEvent () WriteInfo (); // lit le fichier "info.blp" } +bool +CEvent::IsDemoPlaying () +{ + return this->m_bDemoPlay; +} + // Retourne la position de la souris. Point diff --git a/src/event.h b/src/event.h index e177afb..64bbaf2 100644 --- a/src/event.h +++ b/src/event.h @@ -92,6 +92,7 @@ public: CEvent (); ~CEvent (); + bool IsDemoPlaying (); Point GetMousePos (); void Create (CPixmap * pPixmap, CDecor * pDecor, CSound * pSound, CMovie * pMovie);