aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/usercmd.h
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/shared/usercmd.h
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/game/shared/usercmd.h')
-rw-r--r--mp/src/game/shared/usercmd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mp/src/game/shared/usercmd.h b/mp/src/game/shared/usercmd.h
index 20b40345..0005bde9 100644
--- a/mp/src/game/shared/usercmd.h
+++ b/mp/src/game/shared/usercmd.h
@@ -51,6 +51,9 @@ public:
weaponselect = 0;
weaponsubtype = 0;
random_seed = 0;
+#ifdef GAME_DLL
+ server_random_seed = 0;
+#endif
mousedx = 0;
mousedy = 0;
@@ -76,6 +79,9 @@ public:
weaponselect = src.weaponselect;
weaponsubtype = src.weaponsubtype;
random_seed = src.random_seed;
+#ifdef GAME_DLL
+ server_random_seed = src.server_random_seed;
+#endif
mousedx = src.mousedx;
mousedy = src.mousedy;
@@ -151,6 +157,9 @@ public:
int weaponsubtype;
int random_seed; // For shared random functions
+#ifdef GAME_DLL
+ int server_random_seed; // Only the server populates this seed
+#endif
short mousedx; // mouse accum in x from create move
short mousedy; // mouse accum in y from create move