Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Cannot fire ranged weapon after Build manager was activated #358

Closed snipercup closed 4 weeks ago

snipercup commented 1 month ago

The General.is_allowed_to_shoot returns false on this line: https://github.com/Khaligufzel/CataX/blob/777382fdee903a590b0fb5eb01933055d10c7207/Scripts/EquippedItem.gd#L120

after the build menu has been opened. Even after the build menu closes again the weapon cannot fire. Only after restarting the game.

Steps to reproduce:

We can probably set General.is_allowed_to_shoot = not buildmenu.is_visible() in this function: https://github.com/snipercup/CataX/blob/5600167cf58a17b8c7281d51455afa0dcde53f19/Scripts/BuildManager.gd#L59-L65