From e832736e0bf315585f873b43520d1d771930a1c2 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 4 Nov 2013 21:51:24 +0000 Subject: Autogeneration of settings.ini and webadmin.ini Fixes issue #75 --- source/Server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/Server.h') diff --git a/source/Server.h b/source/Server.h index b4fe81d8f..6742153ac 100644 --- a/source/Server.h +++ b/source/Server.h @@ -46,6 +46,9 @@ public: // tolua_export int GetNumPlayers(void); void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; } + // Hardcore mode or not: + bool IsHardcore(void) const {return m_bIsHardcore; } + // tolua_end bool Start(void); @@ -161,6 +164,7 @@ private: AString m_Description; int m_MaxPlayers; + bool m_bIsHardcore; cTickThread m_TickThread; cEvent m_RestartEvent; -- cgit v1.2.3