Skip to content

Commit

Permalink
Fix half of verbs not showing up (#2941)
Browse files Browse the repository at this point in the history
## About The Pull Request

Hello comrades. This PR fixes a mistake, because of which none of `/mob`
verbs was sent to the TGUI panel on client connection for clients having
"Broadcast Log in/out" disabled.

## Why It's Good For The Game

Half of verbs wasn't showing up because of strange check condition
completely unrelated to what's really needed to be checked.

## Changelog

🆑SuhEugene
fix: fixed incomplete TGUI Panel verb list
/🆑
  • Loading branch information
SuhEugene authored Apr 27, 2024
1 parent d9fcf81 commit 8fcef11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
return
var/list/verblist = list()
var/list/verbstoprocess = verbs.Copy()
if(mob?.client?.prefs.broadcast_login_logout)
if(mob)
verbstoprocess += mob.verbs
for(var/atom/movable/thing as anything in mob.contents)
verbstoprocess += thing.verbs
Expand Down

0 comments on commit 8fcef11

Please sign in to comment.