From ca340b7aa2b9fe53aeab958a835babb60fd467dd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Jul 2019 18:37:40 +0800 Subject: [PATCH] 1 --- server/gameserver/room.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 6826b58..89aee9b 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -153,8 +153,8 @@ void Room::AddPlayer(Player* hum) { assert(gas_data.gas_mode == GasInactive); { - hum->pos.x = 3000 + rand() % 100; - hum->pos.y = 3000 + rand() % 200; + hum->pos.x = 200 + rand() % 100; + hum->pos.y = 300 + rand() % 200; hum->attack_dir = hum->pos; hum->attack_dir.Normalize(); hum->attack_dir.Rotate(a8::RandAngle()); @@ -250,8 +250,8 @@ void Room::CreateAndroid(int robot_num) hum->robot_meta = robot_meta; hum->entity_uniid = AllocUniid(); { - hum->pos.x = 3000 + rand() % 1400; - hum->pos.y = 3000 + rand() % 1500; + hum->pos.x = 200 + rand() % 1400; + hum->pos.y = 300 + rand() % 1500; hum->attack_dir = hum->pos; hum->attack_dir.Normalize(); hum->attack_dir.Rotate(a8::RandAngle());