diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 387fb8e..fde90cb 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -213,6 +213,7 @@ void Room::AddPlayer(Player* hum) hum->attack_dir = hum->pos; hum->attack_dir.Normalize(); hum->attack_dir.Rotate(a8::RandAngle()); + hum->move_dir = hum->attack_dir; } hum->entity_uniid = AllocUniid(); hum->room = this; @@ -276,6 +277,7 @@ void Room::ShuaAndroid() hum->attack_dir = hum->pos; hum->attack_dir.Normalize(); hum->attack_dir.Rotate(a8::RandAngle()); + hum->move_dir = hum->attack_dir; } hum->room = this; hum->Initialize(); diff --git a/third_party/a8engine b/third_party/a8engine index ec92ae9..a9712f7 160000 --- a/third_party/a8engine +++ b/third_party/a8engine @@ -1 +1 @@ -Subproject commit ec92ae9234f30150e6c73307603511860fe6eb2d +Subproject commit a9712f7ee833cd2cdfbf7b657b623283bb4cc54f