twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

UTIL_IsServer returns inverted value #130

Closed tmp64 closed 2 years ago

tmp64 commented 2 years ago

https://github.com/SamVanheer/halflife-updated/blob/e7fb73457e1f28f42c038a0a62cfe0b9a15240db/dlls/util.h#L566-L573

On the server (CLIENT_DLL not defined) it returns false, whereas on the client it returns true.

It seems to be only used for the egon sound fix (ValveSoftware/halflife#3232), which was reverted.

SamVanheer commented 2 years ago

Thanks for catching that, i don't know how i missed that.