Skip to content

Commit

Permalink
fix build without HTTP module
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKnopik committed Dec 18, 2024
1 parent 7573e41 commit 9c5ebdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ void Game::setGameState(GameState_t newState)
g_scheduler.stop();
g_databaseTasks.stop();
g_dispatcher.stop();
#ifdef HTTP
tfs::http::stop();
#endif
break;
}

Expand Down
2 changes: 2 additions & 0 deletions src/otserv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ void mainLoader(ServiceManager* services)
// Legacy login protocol
services->add<ProtocolOld>(static_cast<uint16_t>(getNumber(ConfigManager::LOGIN_PORT)));

#ifdef HTTP
// HTTP server
tfs::http::start(getString(ConfigManager::IP), getNumber(ConfigManager::HTTP_PORT),
getNumber(ConfigManager::HTTP_WORKERS));
#endif

RentPeriod_t rentPeriod;
std::string strRentPeriod = boost::algorithm::to_lower_copy(getString(ConfigManager::HOUSE_RENT_PERIOD));
Expand Down

0 comments on commit 9c5ebdd

Please sign in to comment.