]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
check for blocking entities when trying to move
[l2e.git] / src / main.cpp
index c1b70af05f1dc492d717c17679a11150fe659285..a75a08782190fb29a9d253fe1b686907c21cf408 100644 (file)
@@ -344,6 +344,7 @@ int main(int argc, char **argv) {
                mapSelan.SetAnimation(&mapSelanAnimation);
                mapSelan.Position() = Vector<float>(64, 128);
                mapSelan.SpriteOffset() = Vector<float>(0, -32);
+               mapSelan.SetFlags(Entity::FLAG_NONBLOCKING);
                mapMaxim.AddFollower(&mapSelan);
 
                SDL_Surface *mapGuyImg(IMG_Load("test-data/guy-map.png"));
@@ -353,6 +354,7 @@ int main(int argc, char **argv) {
                mapGuy.SetAnimation(&mapGuyAnimation);
                mapGuy.Position() = Vector<float>(64, 128);
                mapGuy.SpriteOffset() = Vector<float>(0, -32);
+               mapSelan.SetFlags(Entity::FLAG_NONBLOCKING);
                mapSelan.AddFollower(&mapGuy);
 
                SDL_Surface *mapDekarImg(IMG_Load("test-data/dekar-map.png"));
@@ -362,6 +364,7 @@ int main(int argc, char **argv) {
                mapDekar.SetAnimation(&mapDekarAnimation);
                mapDekar.Position() = Vector<float>(64, 128);
                mapDekar.SpriteOffset() = Vector<float>(0, -32);
+               mapDekar.SetFlags(Entity::FLAG_NONBLOCKING);
                mapGuy.AddFollower(&mapDekar);
 
                SDL_Surface *mapMonsterImg(IMG_Load("test-data/monster-map.png"));