]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.cpp
check tile lock in Entity
[l2e.git] / src / map / MapState.cpp
index 7f602a73ebf01c0d7f5ac338e2c22c30fc7d236a..5477999899905d2015e99d4afe96a30ff07b90c0 100644 (file)
@@ -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) {