diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-10 15:32:30 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-10 15:32:30 +0000 |
| commit | 294cbe18c17cd20f70f965e7f89a3250ef39b990 (patch) | |
| tree | db942402bd39bfb8336e2a2d134f96f2ad5b2ab1 /src/engine/e_if_mods.h | |
| parent | acffe66ebe63f3ecc970db0feab33a6e85a7d1f4 (diff) | |
| download | zcatch-294cbe18c17cd20f70f965e7f89a3250ef39b990.tar.gz zcatch-294cbe18c17cd20f70f965e7f89a3250ef39b990.zip | |
done some more latency work. added the extra message for projectiles to reduce latency
Diffstat (limited to 'src/engine/e_if_mods.h')
| -rw-r--r-- | src/engine/e_if_mods.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/engine/e_if_mods.h b/src/engine/e_if_mods.h index eff909f3..08d0ec37 100644 --- a/src/engine/e_if_mods.h +++ b/src/engine/e_if_mods.h @@ -51,7 +51,7 @@ void mods_client_enter(int cid); void mods_client_drop(int cid); /* - Function: mods_client_input + Function: mods_client_direct_input Called when the server recives new input from a client. Arguments: @@ -59,7 +59,19 @@ void mods_client_drop(int cid); input - Pointer to the input data. size - Size of the data. (NOT IMPLEMENTED YET) */ -void mods_client_input(int cid, void *input); +void mods_client_direct_input(int cid, void *input); + +/* + Function: mods_client_predicted_input + Called when the server applys the predicted input on the client. + + Arguments: + cid - Client ID. Is 0 - MAX_CLIENTS. + input - Pointer to the input data. + size - Size of the data. (NOT IMPLEMENTED YET) +*/ +void mods_client_predicted_input(int cid, void *input); + /* Function: mods_tick |