| 442 | } |
| 443 | |
| 444 | void WorldClient::centerClientWindowOnPlayer(Vec2U const& windowSize) { |
| 445 | setClientWindow(RectI::withCenter(Vec2I::floor(m_mainPlayer->position()), Vec2I(windowSize))); |
| 446 | } |
| 447 | |
| 448 | void WorldClient::centerClientWindowOnPlayer() { |
| 449 | centerClientWindowOnPlayer(Vec2U(clientWindow().size())); |