| 196 | } |
| 197 | |
| 198 | bool LockCache::IsEmpty() const |
| 199 | { |
| 200 | bool empty = true; |
| 201 | const int rngX = _lockFields.GetXRange(); |
| 202 | const int rngZ = _lockFields.GetYRange(); |
| 203 | for (int i = 0; i < rngZ; i++) |
| 204 | { |
| 205 | for (int j = 0; j < rngX; j++) |
| 206 | { |
| 207 | LockField* p = _lockFields(j, i); |
| 208 | if (p) |
| 209 | { |
| 210 | empty = false; |
| 211 | LOG_DEBUG(Core, "Lock field {},{} not empty", i, j); |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | return empty; |
| 216 | } |
| 217 | |
| 218 | LockField* LockCache::GetLockField(int x, int z) |
| 219 | { |
no test coverage detected