X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=5477999899905d2015e99d4afe96a30ff07b90c0;hb=657eed00ae73b8d06470cec0d955aeada537a90d;hp=7f602a73ebf01c0d7f5ac338e2c22c30fc7d236a;hpb=a550d5e73bef77a8bb98a31034dcaad83a43677a;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index 7f602a7..5477999 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -51,6 +51,7 @@ void MapState::Resize(int width, int height) { void MapState::HandleEvents(const Input &input) { if (!controlled) return; + if (!controlled->TileLock(map->Tileset()->Width(), map->Tileset()->Height())) return; } void MapState::UpdateWorld(float deltaT) {