fix(docs): document the correct function

This commit is contained in:
6arelyFuture 2024-01-25 13:40:06 +01:00
parent 991bc61626
commit e0bbe4061b
Signed by: Future
GPG Key ID: FA77F074E98D98A5

View File

@ -24,16 +24,13 @@ game::dvar_t* cl_exploit;
* On the server side the msg_t structure processed as follows: * On the server side the msg_t structure processed as follows:
* The first 4 bytes are read but not processed (offset 0) * The first 4 bytes are read but not processed (offset 0)
* The following 2 bytes are read but not processed (offset 4) * The following 2 bytes are read but not processed (offset 4)
* The following 1 byte is read and corresponds to the client_t.serverId (offset * The following 1 byte is read and corresponds to the client_t.serverId (offset 6)
* 6) The following 4 bytes are read and corresponds to the * The following 4 bytes are read and correspond to the client_t.messageAcknowledge (offset 7)
* client_t.>messageAcknowledge (offset 7) The following 4 bytes are read and * The following 4 bytes are read and correspond to the client_t.reliableAcknowledge (offset 11)
* corresponds to the client_t.reliableAcknowledge (offset 11)
*/ */
/** /**
* MSG_WriteLong stub which writes clc.serverMessageSequence. * MSG_WriteLong stub which writes clc.serverMessageSequence.
* Tekno gods will check in their Netchan_Process stub this byte is 0. If it is
* not 0 it will trigger their patch.
* @param[out] msg The message to write to. * @param[out] msg The message to write to.
* @param[in] data The data to modify * @param[in] data The data to modify
*/ */
@ -54,6 +51,8 @@ void write_message_sequence(game::msg_t* msg, int data) {
/** /**
* MSG_WriteLong stub which writes clc.serverCommandSequence * MSG_WriteLong stub which writes clc.serverCommandSequence
* Tekno gods will check in their Netchan_Process stub this byte is 0. If it is
* not 0 it will trigger their patch.
* @param[out] msg The message to write to. * @param[out] msg The message to write to.
* @param[in] data The data to modify * @param[in] data The data to modify
*/ */