| 689 | } |
| 690 | |
| 691 | void Seat::toggleSeatVisualDebug() |
| 692 | { |
| 693 | if(!mGameMap->isServerGameMap()) |
| 694 | return; |
| 695 | |
| 696 | // Visual debugging do not work for AI players (otherwise, we would have to use |
| 697 | // mTilesStates for them which would be memory consuming) |
| 698 | if(mPlayer == nullptr) |
| 699 | return; |
| 700 | if(!mPlayer->getIsHuman()) |
| 701 | return; |
| 702 | |
| 703 | mIsDebuggingVision = !mIsDebuggingVision; |
| 704 | } |
| 705 | |
| 706 | void Seat::refreshSeatVisualDebug() |
| 707 | { |
no test coverage detected