This commit is contained in:
aozhiwei 2019-07-11 19:08:00 +08:00
parent 9046f1c8ef
commit 19aa4a38c0
2 changed files with 6 additions and 2 deletions

View File

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

View File

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