diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index c8fd89a..db08d3e 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -250,8 +250,8 @@ const int GUN_SLOT2 = 2; const int FRAG_SLOT = 3; const int SMOKE_SLOT = 4; -const int MAP_HEIGHT = 32*75; -const int MAP_WIDTH = 32*65; +const int MAP_HEIGHT = 32*65; +const int MAP_WIDTH = 32*75; const int MAP_CELL_WIDTH = 64 * 8; const int MAP_GRID_WIDTH = 64; diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index bbde143..b7af83a 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -182,7 +182,9 @@ void Room::AddPlayer(Player* hum) human_hash_[hum->entity_uniid] = hum; ++alive_count_; grid_service.AddHuman(hum); +#if 0 hum->FindLocation(); +#endif hum->RefreshView(); MatchTeam(hum); NotifyUiUpdate(); @@ -281,7 +283,9 @@ void Room::CreateAndroid(int robot_num) human_hash_[hum->entity_uniid] = hum; ++alive_count_; grid_service.AddHuman(hum); + #if 0 hum->FindLocation(); + #endif hum->RefreshView(); { hum->team_id = NewTeam();