修复子弹装弹问题
This commit is contained in:
parent
7603f3926c
commit
e658c5018d
@ -413,4 +413,5 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name)
|
|||||||
if (health <= 0.0001f) {
|
if (health <= 0.0001f) {
|
||||||
BeKill(killer_id, killer_name);
|
BeKill(killer_id, killer_name);
|
||||||
}
|
}
|
||||||
|
need_sync_active_player = true;
|
||||||
}
|
}
|
||||||
|
@ -475,7 +475,6 @@ void Player::LootInteraction(Loot* entity)
|
|||||||
weapons[0].weapon_id = entity->item_id;
|
weapons[0].weapon_id = entity->item_id;
|
||||||
weapons[0].weapon_lv = 1;
|
weapons[0].weapon_lv = 1;
|
||||||
weapons[0].ammo = 0;
|
weapons[0].ammo = 0;
|
||||||
need_sync_active_player = true;
|
|
||||||
}
|
}
|
||||||
need_sync_active_player = true;
|
need_sync_active_player = true;
|
||||||
SyncAroundPlayers();
|
SyncAroundPlayers();
|
||||||
@ -574,6 +573,9 @@ void Player::LootInteraction(Loot* entity)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (action_type == AT_None) {
|
||||||
|
AutoLoadingBullet();
|
||||||
|
}
|
||||||
need_sync_active_player = true;
|
need_sync_active_player = true;
|
||||||
SyncAroundPlayers();
|
SyncAroundPlayers();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user