Commit aef86608 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Quit also in non-DEBUGGING mode.

parent 643c9cf5
...@@ -205,14 +205,12 @@ void Board::setField(TilePos const & tilePos, int value) ...@@ -205,14 +205,12 @@ void Board::setField(TilePos const & tilePos, int value)
// TODO: Why is this called every second? // TODO: Why is this called every second?
int Board::field(TilePos const & tilePos) const int Board::field(TilePos const & tilePos) const
{ {
#ifdef DEBUGGING
if (!isValidPosWithOutline(tilePos)) { if (!isValidPosWithOutline(tilePos)) {
qCCritical(KSHISEN_General) << "Attempted read from invalid field position:" qCCritical(KSHISEN_General) << "Attempted read from invalid field position:"
<< tilePos.x() << tilePos.x()
<< "," << ","
<< tilePos.y(); << tilePos.y();
} }
#endif
if (!isValidPos(tilePos)) { if (!isValidPos(tilePos)) {
return EMPTY; return EMPTY;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment