Skip to content

Commit

Permalink
Corrects isfilter()
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDragonfiend authored Nov 23, 2024
1 parent 7c6783a commit 6a231dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GLOBAL_VAR_INIT(magic_appearance_detecting_image, new /image) // appearances are

// The filters list has the same ref type id as a filter, but isnt one and also isnt a list, so we have to check if the thing has Cut() instead
GLOBAL_VAR_INIT(refid_filter, TYPEID(filter(type="angular_blur")))
#define isfilter(thing) (hascall(thing, "Cut") && TYPEID(thing) == GLOB.refid_filter)
#define isfilter(thing) (!islist(thing) && hascall(thing, "Cut") && TYPEID(thing) == GLOB.refid_filter)

// simple check whether or not a player is a guest using their key
#define IS_GUEST_KEY(key) (findtextEx(key, "Guest-", 1, 7))
Expand Down

0 comments on commit 6a231dc

Please sign in to comment.