From: Daniel Karbach Date: Fri, 5 Oct 2012 15:03:33 +0000 (+0200) Subject: don't lock player character onto its tile X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=e42e6570cb7460a1794fdc674d875a2b798d4f43;p=l2e.git don't lock player character onto its tile --- diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index e215f40..26e20da 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -151,6 +151,10 @@ void MapState::OnGridLock() { void MapState::LockEntities() { for (std::vector::iterator i(entities.begin()), end(entities.end()); i != end; ++i) { + if (*i == controlled) { + // don't lock player + continue; + } (*i)->Position().Lock(map->Tileset()->Size()); } }