Closed snipercup closed 4 weeks ago
The General.is_allowed_to_shoot returns false on this line: https://github.com/Khaligufzel/CataX/blob/777382fdee903a590b0fb5eb01933055d10c7207/Scripts/EquippedItem.gd#L120
General.is_allowed_to_shoot
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
General.is_allowed_to_shoot = not buildmenu.is_visible()
The
General.is_allowed_to_shoot
returns false on this line: https://github.com/Khaligufzel/CataX/blob/777382fdee903a590b0fb5eb01933055d10c7207/Scripts/EquippedItem.gd#L120after 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