Skip to content

Commit 3eaaf2f

Browse files
authored
add Redis support
the database object is now being correctly created
1 parent 9cdafb1 commit 3eaaf2f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/game/server/gamemodes/zcatch.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ void CGameControllerZCATCH::InitRankingServer()
5757

5858
if(DatabaseType == "redis")
5959
{
60-
#ifndef CONF_FAMILY_WINDOWS
61-
m_pRankingServer = new CRedisRankingServer{g_Config.m_SvDatabaseHost, static_cast<size_t>(g_Config.m_SvDatabasePort)};
62-
#else
63-
m_pRankingServer = nullptr;
64-
dbg_msg("[redis_error]: %s", "Redis is not supported on Windows!");
65-
#endif
66-
60+
m_pRankingServer = new CRedisRankingServer{g_Config.m_SvDatabaseHost, static_cast<size_t>(g_Config.m_SvDatabasePort)};
6761
}
6862
else if (DatabaseType == "sqlite" || DatabaseType == "sqlite3")
6963
{

0 commit comments

Comments
 (0)