]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Entity.cpp
removed outdated TODOs from map::Entity
[l2e.git] / src / map / Entity.cpp
index 93530f142735021f063f8dab333f66d694680f51..d239844ea2ef420bd76fd5e47a57dbe7082359e0 100644 (file)
@@ -121,9 +121,8 @@ void Entity::UpdateVelocity() {
 
 
 bool Entity::TileLock(const math::Vector<int> &tileSize) const {
-       // TODO: change position to point to the top-left corner of a tile
        Vector<int> tilePosition(ToInt(position));
-       return (tilePosition.X() % tileSize.X() == 0) && (tilePosition.Y() % tileSize.Y() == 0);
+       return tilePosition % tileSize == Vector<int>();
 }
 
 
@@ -133,7 +132,6 @@ void Entity::Update(Uint32 deltaT) {
 
 
 void Entity::Render(SDL_Surface *dest, const Vector<int> &offset) const {
-       // TODO: configurable sprite offsets
        if (runner.Running()) {
                runner.Draw(dest, offset + ToInt(position) + spriteOffset);
        } else {