This commit is contained in:
aozhiwei 2020-07-31 13:07:36 +08:00
parent 896fa57144
commit c7ff61467d

View File

@ -177,7 +177,7 @@ void Room::AddPlayer(Player* hum)
if (gas_data_.gas_mode != GasInactive) { if (gas_data_.gas_mode != GasInactive) {
abort(); abort();
} }
while (human_hash_.size() > GetRoomMaxPlayerNum()) { while (human_hash_.size() >= GetRoomMaxPlayerNum()) {
RandRemoveAndroid(); RandRemoveAndroid();
} }
hum->born_point = AllocBornPoint(hum); hum->born_point = AllocBornPoint(hum);