Skip to content

Commit

Permalink
turned off sparcraft error logging to file
Browse files Browse the repository at this point in the history
  • Loading branch information
davechurchill committed Sep 27, 2015
1 parent 4231d74 commit bd1c0eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions BOSS/source/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void GameState::getAllLegalActions(ActionSet & actions) const

bool GameState::isLegal(const ActionType & action) const
{
const size_t mineralWorkers = getNumMineralWorkers();
const size_t numRefineries = _units.getNumTotal(ActionTypes::GetRefinery(getRace()));
const size_t numDepots = _units.getNumTotal(ActionTypes::GetResourceDepot(getRace()));
const size_t refineriesInProgress = _units.getNumInProgress(ActionTypes::GetRefinery(getRace()));
Expand Down
4 changes: 2 additions & 2 deletions SparCraft/source/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ namespace SparCraft
{
std::cerr << "\n\n\nSparCraft Fatal Error: \n\n\n " << errorMessage << "\n\n";

std::ofstream logStream;
/*std::ofstream logStream;
logStream.open(SPARCRAFT_LOGFILE, std::ofstream::app);
logStream << "\n\n\nSparCraft Fatal Error: \n\n\n " << errorMessage << "\n\n";
logStream.flush();
logStream.close();
logStream.close();*/

throw(SPARCRAFT_FATAL_ERROR);
}
Expand Down

0 comments on commit bd1c0eb

Please sign in to comment.