]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qh
PutClientInServer: cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qh
index c61e505e91a4be949255b0decfa43d6c8f01b7f0..8d23f511139ea7d6fb956f68ca0c7e4194379a43 100644 (file)
@@ -138,9 +138,9 @@ const string STR_PLAYER = "player";
 const string STR_SPECTATOR = "spectator";
 const string STR_OBSERVER = "observer";
 
-#define IS_PLAYER(v)                   (v.classname == STR_PLAYER)
-#define IS_SPEC(v)                             (v.classname == STR_SPECTATOR)
-#define IS_OBSERVER(v)                         (v.classname == STR_OBSERVER)
+#define IS_PLAYER(v)                   ((v).classname == STR_PLAYER)
+#define IS_SPEC(v)                             ((v).classname == STR_SPECTATOR)
+#define IS_OBSERVER(v)                         ((v).classname == STR_OBSERVER)
 #define IS_CLIENT(v)                   (v.flags & FL_CLIENT)
 #define IS_BOT_CLIENT(v)               (clienttype(v) == CLIENTTYPE_BOT)
 #define IS_REAL_CLIENT(v)              (clienttype(v) == CLIENTTYPE_REAL)