修复最后一个毒圈无伤害问题
This commit is contained in:
parent
0c2d2fe0bf
commit
047b93a50e
@ -195,7 +195,7 @@ void Player::UpdateAction()
|
|||||||
if (item_meta){
|
if (item_meta){
|
||||||
if (inventory[item_meta->i->_inventory_slot()] > 0) {
|
if (inventory[item_meta->i->_inventory_slot()] > 0) {
|
||||||
health += item_meta->i->heal();
|
health += item_meta->i->heal();
|
||||||
health = std::max(100.0f, health);
|
health = std::min(100.0f, health);
|
||||||
--inventory[item_meta->i->_inventory_slot()];
|
--inventory[item_meta->i->_inventory_slot()];
|
||||||
need_sync_active_player = true;
|
need_sync_active_player = true;
|
||||||
SyncAroundPlayers();
|
SyncAroundPlayers();
|
||||||
|
@ -630,7 +630,11 @@ void Room::UpdateGas()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
bool b1 = CircleContainCircle(gas_data.pos_old,
|
bool b1 = CircleContainCircle(gas_data.pos_old,
|
||||||
|
#if 1
|
||||||
|
gas_data.gas_progress,
|
||||||
|
#else
|
||||||
gas_data.rad_old,
|
gas_data.rad_old,
|
||||||
|
#endif
|
||||||
pair.second->pos,
|
pair.second->pos,
|
||||||
pair.second->GetRadius()
|
pair.second->GetRadius()
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user