Fix lightning gun weapon number zeroed when sending weapon info to EV_MISSILE_MISS event

This commit is contained in:
LegendGuard 2024-10-17 00:26:58 +02:00 committed by GitHub
parent cc18246f22
commit 244ca55a3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -672,6 +672,7 @@ void Weapon_LightningFire( gentity_t *ent ) {
} else if ( !( tr.surfaceFlags & SURF_NOIMPACT ) ) {
tent = G_TempEntity( tr.endpos, EV_MISSILE_MISS );
tent->s.eventParm = DirToByte( tr.plane.normal );
tent->s.weapon = ent->s.weapon;
}
break;