| 420 | } |
| 421 | |
| 422 | Tile* TileContainer::tileFromPacket(ODPacket& packet) const |
| 423 | { |
| 424 | int32_t x; |
| 425 | int32_t y; |
| 426 | OD_ASSERT_TRUE(packet >> x >> y); |
| 427 | Tile* tile = getTile(x, y); |
| 428 | if(tile == nullptr) |
| 429 | { |
| 430 | OD_LOG_ERR("tile=" + Helper::toString(x) + "," + Helper::toString(y)); |
| 431 | } |
| 432 | return tile; |
| 433 | } |
| 434 | |
| 435 | bool TileContainer::allocateMapMemory(int xSize, int ySize) |
| 436 | { |
no test coverage detected