From 101ea940b351d644cd2afe4eed8df45163903da3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 13 Apr 2019 11:13:11 +0800 Subject: [PATCH] 1 --- server/gameserver/room.cc | 2 ++ third_party/a8engine | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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