diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-03-30 22:50:12 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-03-30 22:50:12 +0000 |
commit | 25622e67c36582bfc7b10756ea5808a247b69a8a (patch) | |
tree | b5e86156ecc5cfa0f9dcb3b746074b05388063ad /source/q_shared.h | |
parent | 599a6aba5619bea100e45b31483148d232229f91 (diff) |
Added UF_MUTE_MISC flag and corresponding MVD menu entry.
Avoid spamming MVD channels with broadcasts when client is dropped.
Allow referencing MVD channels by name along with numeric ID.
When spectator enters a MVD channel for the first time,
start following the most followed player by default.
Changed default GL driver to `libGL.so.1' on Unix.
Diffstat (limited to 'source/q_shared.h')
-rw-r--r-- | source/q_shared.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/q_shared.h b/source/q_shared.h index 9bd88a1..9933fc2 100644 --- a/source/q_shared.h +++ b/source/q_shared.h @@ -193,9 +193,14 @@ typedef struct vrect_s { // microsoft's fabs seems to be ungodly slow... static inline float Q_fabs( float f ) { - uint32_t tmp = *( uint32_t * )&f; - tmp &= 0x7FFFFFFF; - return *( float * )&tmp; + union { + uint32_t l; + float f; + } tmp; + + tmp.f = f; + tmp.l &= 0x7FFFFFFF; + return tmp.f; } #define Q_ftol( f ) ((long)(f)) @@ -1406,8 +1411,9 @@ ROGUE - VERSIONS #define UF_AUTOSCREENSHOT 1 #define UF_AUTORECORD 2 #define UF_LOCALFOV 4 -#define UF_NOGAMECHAT 8 -#define UF_NOMVDCHAT 16 +#define UF_MUTE_PLAYERS 8 +#define UF_MUTE_OBSERVERS 16 +#define UF_MUTE_MISC 32 /* ========================================================== |