修复子弹装弹问题

This commit is contained in:
aozhiwei 2019-04-12 11:00:14 +08:00
parent 7603f3926c
commit e658c5018d
2 changed files with 4 additions and 1 deletions

View File

@ -413,4 +413,5 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name)
if (health <= 0.0001f) {
BeKill(killer_id, killer_name);
}
need_sync_active_player = true;
}

View File

@ -475,7 +475,6 @@ void Player::LootInteraction(Loot* entity)
weapons[0].weapon_id = entity->item_id;
weapons[0].weapon_lv = 1;
weapons[0].ammo = 0;
need_sync_active_player = true;
}
need_sync_active_player = true;
SyncAroundPlayers();
@ -574,6 +573,9 @@ void Player::LootInteraction(Loot* entity)
break;
}
}
if (action_type == AT_None) {
AutoLoadingBullet();
}
need_sync_active_player = true;
SyncAroundPlayers();
}