This commit is contained in:
aozhiwei 2019-07-03 18:37:40 +08:00
parent b2dd48cb14
commit ca340b7aa2

View File

@ -153,8 +153,8 @@ void Room::AddPlayer(Player* hum)
{ {
assert(gas_data.gas_mode == GasInactive); assert(gas_data.gas_mode == GasInactive);
{ {
hum->pos.x = 3000 + rand() % 100; hum->pos.x = 200 + rand() % 100;
hum->pos.y = 3000 + rand() % 200; hum->pos.y = 300 + rand() % 200;
hum->attack_dir = hum->pos; hum->attack_dir = hum->pos;
hum->attack_dir.Normalize(); hum->attack_dir.Normalize();
hum->attack_dir.Rotate(a8::RandAngle()); hum->attack_dir.Rotate(a8::RandAngle());
@ -250,8 +250,8 @@ void Room::CreateAndroid(int robot_num)
hum->robot_meta = robot_meta; hum->robot_meta = robot_meta;
hum->entity_uniid = AllocUniid(); hum->entity_uniid = AllocUniid();
{ {
hum->pos.x = 3000 + rand() % 1400; hum->pos.x = 200 + rand() % 1400;
hum->pos.y = 3000 + rand() % 1500; hum->pos.y = 300 + rand() % 1500;
hum->attack_dir = hum->pos; hum->attack_dir = hum->pos;
hum->attack_dir.Normalize(); hum->attack_dir.Normalize();
hum->attack_dir.Rotate(a8::RandAngle()); hum->attack_dir.Rotate(a8::RandAngle());