Fix ammo bits being incorrect

This commit is contained in:
smallmodel 2024-10-02 23:04:30 +02:00
parent be1ef1de0e
commit 0b34d2dbb8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -3410,7 +3410,7 @@ void MSG_WriteDeltaPlayerstate(msg_t *msg, struct playerState_s *from, struct pl
}
}
ammobits = 0;
for (i=0 ; i<MAX_WEAPONS ; i++) {
for (i=0 ; i<MAX_AMMO ; i++) {
if (to->ammo_name_index[i] != from->ammo_name_index[i]) {
ammobits |= 1<<i;
}