Reversions and fixes (#7889)

Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
Raeschen
2024-03-06 18:20:29 +01:00
committed by GitHub
parent c277710a50
commit e29b9d4d35
37 changed files with 254 additions and 203 deletions

View File

@@ -253,6 +253,7 @@
if(!uses_charge)
amount -= used
if (amount <= 0)
amount = 0 // stop amount going negative ideally
qdel(src) //should be safe to qdel immediately since if someone is still using this stack it will persist for a little while longer
update_icon()
return 1