Skip to content

Commit

Permalink
add Redis support
Browse files Browse the repository at this point in the history
the database object is now being correctly created
  • Loading branch information
jxsl13 committed Apr 26, 2020
1 parent 9cdafb1 commit 3eaaf2f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/game/server/gamemodes/zcatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ void CGameControllerZCATCH::InitRankingServer()

if(DatabaseType == "redis")
{
#ifndef CONF_FAMILY_WINDOWS
m_pRankingServer = new CRedisRankingServer{g_Config.m_SvDatabaseHost, static_cast<size_t>(g_Config.m_SvDatabasePort)};
#else
m_pRankingServer = nullptr;
dbg_msg("[redis_error]: %s", "Redis is not supported on Windows!");
#endif

m_pRankingServer = new CRedisRankingServer{g_Config.m_SvDatabaseHost, static_cast<size_t>(g_Config.m_SvDatabasePort)};
}
else if (DatabaseType == "sqlite" || DatabaseType == "sqlite3")
{
Expand Down

0 comments on commit 3eaaf2f

Please sign in to comment.