Crowdedlight / Crows-Electronic-Warfare

Arma 3 Mod that enables electronic warfare features such as Radio/Drone jamming and spectrum signal tracking
https://crowdedlight.github.io/Crows-Electronic-Warfare/
Other
17 stars 6 forks source link

Fix dual init drone signals #61

Closed b-mayr-1984 closed 4 months ago

b-mayr-1984 commented 5 months ago

Fixes a bug when merged, were jammable objects that shall represent a class of jammable objects call initDroneSignals twice and thus have 2x entries in crowsew_spectrum_beacons (albeit with different frequencies).

Bug illustration

image

left drone image

right drone image

also in Zeus perspective the dual initializations were visible image image

After merge duplicate signal peaks are gone.

Crowdedlight commented 4 months ago

Not completely sure why this PR is showing it would edit the files again for typo's etc. that have already been edited in the last PR I merged.... I might be doing something wrong with git here xD

In any case, I cherry picked d159e5414ef3e0400cccb185aa41d5ad67bc192f (Fix dual call of initdroneSignals") instead from here.