修复新手出生点问题
This commit is contained in:
parent
1ac80b93b3
commit
e01382beac
@ -26,12 +26,12 @@ void MapMgr::Init()
|
||||
map_meta_->i->map_height() / MAP_GRID_WIDTH,
|
||||
MAP_GRID_WIDTH);
|
||||
CreateThings();
|
||||
a8::XPrintf("current_uniid:%d loots:%d spawn_points:%d\n",
|
||||
{
|
||||
current_uniid_,
|
||||
loots_.size(),
|
||||
spawn_points_.size()
|
||||
});
|
||||
a8::UdpLog::Instance()->Info("current_uniid:%d loots:%d spawn_points:%d\n",
|
||||
{
|
||||
current_uniid_,
|
||||
loots_.size(),
|
||||
spawn_points_.size()
|
||||
});
|
||||
if (current_uniid_ >= FIXED_OBJECT_MAXID) {
|
||||
abort();
|
||||
}
|
||||
|
@ -1630,6 +1630,7 @@ void Room::SecondRandPoint()
|
||||
hum->born_point = newbie_point;
|
||||
if (hum->born_point) {
|
||||
IncBornPointHumanNum(hum->born_point, hum);
|
||||
hum->SetPos(hum->born_point->RandPoint());
|
||||
}
|
||||
hum->FindLocation();
|
||||
hum->RefreshView();
|
||||
|
@ -345,6 +345,14 @@ Room* RoomMgr::CreateRoom(RoomType_e room_type)
|
||||
inactive_room_hash_[room->room_uuid] = room;
|
||||
room_hash_[room->room_uuid] = room;
|
||||
room_idx_hash_[room->room_idx] = room;
|
||||
#ifdef DEBUG
|
||||
a8::UdpLog::Instance()->Debug("createroom room_idx:%d room_uuid:%d room_type:%d",
|
||||
{
|
||||
room->room_idx,
|
||||
room->room_uuid,
|
||||
room->room_type
|
||||
});
|
||||
#endif
|
||||
return room;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user