diff --git a/server/gameserver/gridservice.cc b/server/gameserver/gridservice.cc index 096bae8..8acb07c 100644 --- a/server/gameserver/gridservice.cc +++ b/server/gameserver/gridservice.cc @@ -81,7 +81,6 @@ void GridService::GetAllCellsByXy(int x, int y, std::set& grid_list) void GridService::AddHuman(Human* hum) { - #if 0 int x = (int)hum->pos.x + cell_width_; int y = (int)hum->pos.y + cell_width_; if (BroderOverFlow(x, y)) { @@ -93,7 +92,6 @@ void GridService::AddHuman(Human* hum) } cells_[hum->grid_id].human_list.insert(hum); GetAllCells(hum->grid_id, hum->grid_list); - #endif } void GridService::MoveHuman(Human* hum) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index f944674..c2b16cd 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -149,6 +149,10 @@ int Room::AliveCount() void Room::AddPlayer(Player* hum) { assert(gas_data.gas_mode == GasInactive); + { + hum->pos.x = 100; + hum->pos.y = 100; + } hum->entity_uniid = AllocUniid(); hum->room = this; hum->join_frameno = frame_no;