This commit is contained in:
aozhiwei 2019-04-13 11:13:11 +08:00
parent d49ca2eb95
commit 101ea940b3
2 changed files with 3 additions and 1 deletions

View File

@ -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();

@ -1 +1 @@
Subproject commit ec92ae9234f30150e6c73307603511860fe6eb2d
Subproject commit a9712f7ee833cd2cdfbf7b657b623283bb4cc54f