1
This commit is contained in:
parent
765e88b3c3
commit
7b69517946
@ -43,9 +43,9 @@ Position BornPoint::RandPoint(Room* room) const
|
||||
return pos;
|
||||
}
|
||||
|
||||
int BornPoint::GetNum()
|
||||
int BornPoint::GetNum(Room* room)
|
||||
{
|
||||
return 4;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Position BornPoint::GetSrcPoint(Room* room) const
|
||||
|
@ -13,7 +13,7 @@ struct BornPoint
|
||||
std::shared_ptr<mt::WorldObject> wo_meta;
|
||||
int side = 0;
|
||||
|
||||
int GetNum();
|
||||
int GetNum(Room* room);
|
||||
Position RandPoint(Room* room) const;
|
||||
Position GetSrcPoint(Room* room) const;
|
||||
Position NewRandPoint(Room* room, int min_radius, int max_radius) const;
|
||||
|
@ -2486,7 +2486,7 @@ std::shared_ptr<BornPoint> Room::AllocBornPoint(Human* hum)
|
||||
for (auto& pair : born_point_hash_) {
|
||||
if (pair.second != hum->GetBornPoint()) {
|
||||
if (pair.second->player_num + pair.second->android_num <
|
||||
pair.second->GetNum()) {
|
||||
pair.second->GetNum(this)) {
|
||||
point_list.push_back(pair.second);
|
||||
free_point_list.push_back(pair.second);;
|
||||
}
|
||||
@ -2516,7 +2516,7 @@ std::shared_ptr<BornPoint> Room::AllocBornPoint(Human* hum)
|
||||
std::vector<std::shared_ptr<BornPoint>> free_point_list;
|
||||
for (auto& pair : born_point_hash_) {
|
||||
if (pair.second->player_num + pair.second->android_num <
|
||||
pair.second->GetNum()) {
|
||||
pair.second->GetNum(this)) {
|
||||
free_point_list.push_back(pair.second);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user