1
This commit is contained in:
parent
4566a5714d
commit
99631d7e0e
@ -81,7 +81,6 @@ void GridService::GetAllCellsByXy(int x, int y, std::set<GridCell*>& grid_list)
|
|||||||
|
|
||||||
void GridService::AddHuman(Human* hum)
|
void GridService::AddHuman(Human* hum)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
int x = (int)hum->pos.x + cell_width_;
|
int x = (int)hum->pos.x + cell_width_;
|
||||||
int y = (int)hum->pos.y + cell_width_;
|
int y = (int)hum->pos.y + cell_width_;
|
||||||
if (BroderOverFlow(x, y)) {
|
if (BroderOverFlow(x, y)) {
|
||||||
@ -93,7 +92,6 @@ void GridService::AddHuman(Human* hum)
|
|||||||
}
|
}
|
||||||
cells_[hum->grid_id].human_list.insert(hum);
|
cells_[hum->grid_id].human_list.insert(hum);
|
||||||
GetAllCells(hum->grid_id, hum->grid_list);
|
GetAllCells(hum->grid_id, hum->grid_list);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GridService::MoveHuman(Human* hum)
|
void GridService::MoveHuman(Human* hum)
|
||||||
|
@ -149,6 +149,10 @@ int Room::AliveCount()
|
|||||||
void Room::AddPlayer(Player* hum)
|
void Room::AddPlayer(Player* hum)
|
||||||
{
|
{
|
||||||
assert(gas_data.gas_mode == GasInactive);
|
assert(gas_data.gas_mode == GasInactive);
|
||||||
|
{
|
||||||
|
hum->pos.x = 100;
|
||||||
|
hum->pos.y = 100;
|
||||||
|
}
|
||||||
hum->entity_uniid = AllocUniid();
|
hum->entity_uniid = AllocUniid();
|
||||||
hum->room = this;
|
hum->room = this;
|
||||||
hum->join_frameno = frame_no;
|
hum->join_frameno = frame_no;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user