FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.72k stars 400 forks source link

Cannot swap SMG magazines by double-clicking #8088

Closed Anarengon closed 2 years ago

Anarengon commented 2 years ago

Either it's a minor dev oversight, or it's working as intended. While wielding an SMG, you can't replace it's equipped magazine by doubleclicking another magazine in your hotbar. You'll simply switch to equipping the doubleclicked magazine to your hands.

Performing the same actions on a rapid fissile accelerator, everything works as expected: doubleclicking or pressing the equip indicator above a fuel rod in your inventory will put it inside the RFA and swap out whatever was in the RFA before.

Unless, the RFA has nothing loaded into it, in which case clicking the equip indicator above a fuel rod will not load it. Doubleclick works as expected in that situation. That might be a second oversight.

SMG can equip a magazine via doubleclick but not by clicking the equip indicator, if the smg's internal slot is empty of any item.

Regalis11 commented 2 years ago

Fixed in https://github.com/Regalis11/Barotrauma-development/commit/df4f988b68019584dac54b7efc749c7a47d07078

Rokvach commented 2 years ago

Tested, working correctlly. Closing.